Skip to content

Commit 5023467

Browse files
committed
Update tests and snapshots
1 parent be2b3cb commit 5023467

13 files changed

+93
-93
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" width="78" height="18">
1+
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="18">
22
<linearGradient id="smooth" x2="0" y2="100%">
33
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
44
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
55
<stop offset=".9" stop-color="#000" stop-opacity=".3"/>
66
<stop offset="1" stop-color="#000" stop-opacity=".5"/>
77
</linearGradient>
8-
<rect rx="4" width="78" height="18" fill="#555555"/>
9-
<rect rx="4" x="49" width="29" height="18" fill="#e05d44"/>
10-
<rect x="49" width="4" height="18" fill="#e05d44"/>
11-
<rect rx="4" width="78" height="18" fill="url(#smooth)"/>
8+
<rect rx="4" width="76" height="18" fill="#555555"/>
9+
<rect rx="4" x="48" width="28" height="18" fill="#e05d44"/>
10+
<rect x="48" width="4" height="18" fill="#e05d44"/>
11+
<rect rx="4" width="76" height="18" fill="url(#smooth)"/>
1212
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
13-
<text x="25.5" y="13" fill="#010101" fill-opacity=".3">license</text>
14-
<text x="25.5" y="12">license</text>
15-
<text x="62.5" y="13" fill="#010101" fill-opacity=".3">MIT</text>
16-
<text x="62.5" y="12">MIT</text>
13+
<text x="25" y="13" fill="#010101" fill-opacity=".3">license</text>
14+
<text x="25" y="12">license</text>
15+
<text x="61" y="13" fill="#010101" fill-opacity=".3">MIT</text>
16+
<text x="61" y="12">MIT</text>
1717
</g>
1818
</svg>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" width="78" height="18">
1+
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="18">
22
<linearGradient id="smooth" x2="0" y2="100%">
33
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
44
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
55
<stop offset=".9" stop-color="#000" stop-opacity=".3"/>
66
<stop offset="1" stop-color="#000" stop-opacity=".5"/>
77
</linearGradient>
8-
<rect rx="4" width="78" height="18" fill="#555555"/>
9-
<rect rx="4" x="49" width="29" height="18" fill="#ff69b4"/>
10-
<rect x="49" width="4" height="18" fill="#ff69b4"/>
11-
<rect rx="4" width="78" height="18" fill="url(#smooth)"/>
8+
<rect rx="4" width="76" height="18" fill="#555555"/>
9+
<rect rx="4" x="48" width="28" height="18" fill="#ff69b4"/>
10+
<rect x="48" width="4" height="18" fill="#ff69b4"/>
11+
<rect rx="4" width="76" height="18" fill="url(#smooth)"/>
1212
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
13-
<text x="25.5" y="13" fill="#010101" fill-opacity=".3">license</text>
14-
<text x="25.5" y="12">license</text>
15-
<text x="62.5" y="13" fill="#010101" fill-opacity=".3">MIT</text>
16-
<text x="62.5" y="12">MIT</text>
13+
<text x="25" y="13" fill="#010101" fill-opacity=".3">license</text>
14+
<text x="25" y="12">license</text>
15+
<text x="61" y="13" fill="#010101" fill-opacity=".3">MIT</text>
16+
<text x="61" y="12">MIT</text>
1717
</g>
1818
</svg>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" width="78" height="18">
1+
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="18">
22
<linearGradient id="smooth" x2="0" y2="100%">
33
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
44
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
55
<stop offset=".9" stop-color="#000" stop-opacity=".3"/>
66
<stop offset="1" stop-color="#000" stop-opacity=".5"/>
77
</linearGradient>
8-
<rect rx="4" width="78" height="18" fill="#555555"/>
9-
<rect rx="4" x="49" width="29" height="18" fill="#007ec6"/>
10-
<rect x="49" width="4" height="18" fill="#007ec6"/>
11-
<rect rx="4" width="78" height="18" fill="url(#smooth)"/>
8+
<rect rx="4" width="76" height="18" fill="#555555"/>
9+
<rect rx="4" x="48" width="28" height="18" fill="#007ec6"/>
10+
<rect x="48" width="4" height="18" fill="#007ec6"/>
11+
<rect rx="4" width="76" height="18" fill="url(#smooth)"/>
1212
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
13-
<text x="25.5" y="13" fill="#010101" fill-opacity=".3">license</text>
14-
<text x="25.5" y="12">license</text>
15-
<text x="62.5" y="13" fill="#010101" fill-opacity=".3">MIT</text>
16-
<text x="62.5" y="12">MIT</text>
13+
<text x="25" y="13" fill="#010101" fill-opacity=".3">license</text>
14+
<text x="25" y="12">license</text>
15+
<text x="61" y="13" fill="#010101" fill-opacity=".3">MIT</text>
16+
<text x="61" y="12">MIT</text>
1717
</g>
1818
</svg>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" width="124" height="20">
1+
<svg xmlns="http://www.w3.org/2000/svg" width="127" height="20">
22
<linearGradient id="b" x2="0" y2="100%">
33
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
44
<stop offset="1" stop-opacity=".1"/>
55
</linearGradient>
66
<mask id="a">
7-
<rect width="124" height="20" rx="0" fill="#fff"/>
7+
<rect width="127" height="20" rx="0" fill="#fff"/>
88
</mask>
99
<g mask="url(#a)">
10-
<rect width="60" height="20" fill="#555"/>
11-
<rect x="60" width="64" height="20" fill="#4c1"/>
12-
<rect width="124" height="20" fill="url(#b)"/>
10+
<rect width="62" height="20" fill="#555"/>
11+
<rect x="62" width="65" height="20" fill="#4c1"/>
12+
<rect width="127" height="20" fill="url(#b)"/>
1313
</g>
1414
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
15-
<text x="31" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16-
<text x="31" y="14">Alt Three</text>
17-
<text x="91" y="15" fill="#010101" fill-opacity=".3">Awesome</text>
18-
<text x="91" y="14">Awesome</text>
15+
<text x="32" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16+
<text x="32" y="14">Alt Three</text>
17+
<text x="93.5" y="15" fill="#010101" fill-opacity=".3">Awesome</text>
18+
<text x="93.5" y="14">Awesome</text>
1919
</g>
2020
</svg>

tests/.pest/snapshots/Render/FlatSquareRenderTest/it_can_render_alt_three_dead_red.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<rect width="99" height="20" rx="0" fill="#fff"/>
88
</mask>
99
<g mask="url(#a)">
10-
<rect width="60" height="20" fill="#555"/>
11-
<rect x="60" width="39" height="20" fill="#e05d44"/>
10+
<rect width="62" height="20" fill="#555"/>
11+
<rect x="62" width="37" height="20" fill="#e05d44"/>
1212
<rect width="99" height="20" fill="url(#b)"/>
1313
</g>
1414
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
15-
<text x="31" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16-
<text x="31" y="14">Alt Three</text>
17-
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">Dead</text>
18-
<text x="78.5" y="14">Dead</text>
15+
<text x="32" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16+
<text x="32" y="14">Alt Three</text>
17+
<text x="79.5" y="15" fill="#010101" fill-opacity=".3">Dead</text>
18+
<text x="79.5" y="14">Dead</text>
1919
</g>
2020
</svg>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" width="124" height="20">
1+
<svg xmlns="http://www.w3.org/2000/svg" width="127" height="20">
22
<linearGradient id="b" x2="0" y2="100%">
33
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
44
<stop offset="1" stop-opacity=".1"/>
55
</linearGradient>
66
<mask id="a">
7-
<rect width="124" height="20" rx="3" fill="#fff"/>
7+
<rect width="127" height="20" rx="3" fill="#fff"/>
88
</mask>
99
<g mask="url(#a)">
10-
<rect width="60" height="20" fill="#555"/>
11-
<rect x="60" width="64" height="20" fill="#4c1"/>
12-
<rect width="124" height="20" fill="url(#b)"/>
10+
<rect width="62" height="20" fill="#555"/>
11+
<rect x="62" width="65" height="20" fill="#4c1"/>
12+
<rect width="127" height="20" fill="url(#b)"/>
1313
</g>
1414
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
15-
<text x="31" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16-
<text x="31" y="14">Alt Three</text>
17-
<text x="91" y="15" fill="#010101" fill-opacity=".3">Awesome</text>
18-
<text x="91" y="14">Awesome</text>
15+
<text x="32" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16+
<text x="32" y="14">Alt Three</text>
17+
<text x="93.5" y="15" fill="#010101" fill-opacity=".3">Awesome</text>
18+
<text x="93.5" y="14">Awesome</text>
1919
</g>
2020
</svg>

tests/.pest/snapshots/Render/PlasticFlatRenderTest/it_can_render_alt_three_dead_red.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<rect width="99" height="20" rx="3" fill="#fff"/>
88
</mask>
99
<g mask="url(#a)">
10-
<rect width="60" height="20" fill="#555"/>
11-
<rect x="60" width="39" height="20" fill="#e05d44"/>
10+
<rect width="62" height="20" fill="#555"/>
11+
<rect x="62" width="37" height="20" fill="#e05d44"/>
1212
<rect width="99" height="20" fill="url(#b)"/>
1313
</g>
1414
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
15-
<text x="31" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16-
<text x="31" y="14">Alt Three</text>
17-
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">Dead</text>
18-
<text x="78.5" y="14">Dead</text>
15+
<text x="32" y="15" fill="#010101" fill-opacity=".3">Alt Three</text>
16+
<text x="32" y="14">Alt Three</text>
17+
<text x="79.5" y="15" fill="#010101" fill-opacity=".3">Dead</text>
18+
<text x="79.5" y="14">Dead</text>
1919
</g>
2020
</svg>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" width="124" height="18">
1+
<svg xmlns="http://www.w3.org/2000/svg" width="127" height="18">
22
<linearGradient id="smooth" x2="0" y2="100%">
33
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
44
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
55
<stop offset=".9" stop-color="#000" stop-opacity=".3"/>
66
<stop offset="1" stop-color="#000" stop-opacity=".5"/>
77
</linearGradient>
8-
<rect rx="4" width="124" height="18" fill="#555555"/>
9-
<rect rx="4" x="60" width="64" height="18" fill="#4c1"/>
10-
<rect x="60" width="4" height="18" fill="#4c1"/>
11-
<rect rx="4" width="124" height="18" fill="url(#smooth)"/>
8+
<rect rx="4" width="127" height="18" fill="#555555"/>
9+
<rect rx="4" x="62" width="65" height="18" fill="#4c1"/>
10+
<rect x="62" width="4" height="18" fill="#4c1"/>
11+
<rect rx="4" width="127" height="18" fill="url(#smooth)"/>
1212
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
13-
<text x="31" y="13" fill="#010101" fill-opacity=".3">Alt Three</text>
14-
<text x="31" y="12">Alt Three</text>
15-
<text x="91" y="13" fill="#010101" fill-opacity=".3">Awesome</text>
16-
<text x="91" y="12">Awesome</text>
13+
<text x="32" y="13" fill="#010101" fill-opacity=".3">Alt Three</text>
14+
<text x="32" y="12">Alt Three</text>
15+
<text x="93.5" y="13" fill="#010101" fill-opacity=".3">Awesome</text>
16+
<text x="93.5" y="12">Awesome</text>
1717
</g>
1818
</svg>

tests/.pest/snapshots/Render/PlasticRenderTest/it_can_render_alt_three_dead_red.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<stop offset="1" stop-color="#000" stop-opacity=".5"/>
77
</linearGradient>
88
<rect rx="4" width="99" height="18" fill="#555555"/>
9-
<rect rx="4" x="60" width="39" height="18" fill="#e05d44"/>
10-
<rect x="60" width="4" height="18" fill="#e05d44"/>
9+
<rect rx="4" x="62" width="37" height="18" fill="#e05d44"/>
10+
<rect x="62" width="4" height="18" fill="#e05d44"/>
1111
<rect rx="4" width="99" height="18" fill="url(#smooth)"/>
1212
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
13-
<text x="31" y="13" fill="#010101" fill-opacity=".3">Alt Three</text>
14-
<text x="31" y="12">Alt Three</text>
15-
<text x="78.5" y="13" fill="#010101" fill-opacity=".3">Dead</text>
16-
<text x="78.5" y="12">Dead</text>
13+
<text x="32" y="13" fill="#010101" fill-opacity=".3">Alt Three</text>
14+
<text x="32" y="12">Alt Three</text>
15+
<text x="79.5" y="13" fill="#010101" fill-opacity=".3">Dead</text>
16+
<text x="79.5" y="12">Dead</text>
1717
</g>
1818
</svg>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="131" height="20">
1+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="134" height="20">
22
<style type="text/css"><![CDATA[
33
#llink:hover { fill:url(#b); stroke:#ccc; }
44
#rlink:hover { fill:#a4a61d; }
@@ -12,18 +12,18 @@
1212
<stop offset="1" stop-opacity=".1"/>
1313
</linearGradient>
1414
<g stroke="#d5d5d5">
15-
<rect stroke="none" fill="#fcfcfc" x="0.5" y="0.5" width="60" height="19" rx="2"/>
16-
<rect y="0.5" x="66" width="64" height="19" rx="2" fill="#fafafa"/>
17-
<rect x="66" y="7.5" width="0.5" height="5" stroke="#fafafa"/>
18-
<path d="M66.5 6.5 l-3 3v1 l3 3" stroke="d5d5d5" fill="#fafafa"/>
15+
<rect stroke="none" fill="#fcfcfc" x="0.5" y="0.5" width="62" height="19" rx="2"/>
16+
<rect y="0.5" x="68" width="65" height="19" rx="2" fill="#fafafa"/>
17+
<rect x="68" y="7.5" width="0.5" height="5" stroke="#fafafa"/>
18+
<path d="M68.5 6.5 l-3 3v1 l3 3" stroke="d5d5d5" fill="#fafafa"/>
1919
</g>
2020
<g fill="#333" text-anchor="middle" font-family="Helvetica Neue,Helvetica,Arial,sans-serif" font-weight="700" font-size="11px" line-height="14px">
21-
<text x="31" y="15" fill="#fff">Alt Three</text>
22-
<text x="31" y="14">Alt Three</text>
23-
<text x="98" y="15" fill="#fff">Awesome</text>
24-
<text x="98" y="14">Awesome</text>
21+
<text x="32" y="15" fill="#fff">Alt Three</text>
22+
<text x="32" y="14">Alt Three</text>
23+
<text x="100.5" y="15" fill="#fff">Awesome</text>
24+
<text x="100.5" y="14">Awesome</text>
2525
</g>
2626
<a xlink:href="undefined">
27-
<rect id="llink" stroke="#d5d5d5" fill="url(#a)" x=".5" y=".5" width="60" height="19" rx="2"/>
27+
<rect id="llink" stroke="#d5d5d5" fill="url(#a)" x=".5" y=".5" width="62" height="19" rx="2"/>
2828
</a>
2929
</svg>

tests/.pest/snapshots/Render/SocialRenderTest/it_can_render_alt_three_dead_red.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
<stop offset="1" stop-opacity=".1"/>
1313
</linearGradient>
1414
<g stroke="#d5d5d5">
15-
<rect stroke="none" fill="#fcfcfc" x="0.5" y="0.5" width="60" height="19" rx="2"/>
16-
<rect y="0.5" x="66" width="39" height="19" rx="2" fill="#fafafa"/>
17-
<rect x="66" y="7.5" width="0.5" height="5" stroke="#fafafa"/>
18-
<path d="M66.5 6.5 l-3 3v1 l3 3" stroke="d5d5d5" fill="#fafafa"/>
15+
<rect stroke="none" fill="#fcfcfc" x="0.5" y="0.5" width="62" height="19" rx="2"/>
16+
<rect y="0.5" x="68" width="37" height="19" rx="2" fill="#fafafa"/>
17+
<rect x="68" y="7.5" width="0.5" height="5" stroke="#fafafa"/>
18+
<path d="M68.5 6.5 l-3 3v1 l3 3" stroke="d5d5d5" fill="#fafafa"/>
1919
</g>
2020
<g fill="#333" text-anchor="middle" font-family="Helvetica Neue,Helvetica,Arial,sans-serif" font-weight="700" font-size="11px" line-height="14px">
21-
<text x="31" y="15" fill="#fff">Alt Three</text>
22-
<text x="31" y="14">Alt Three</text>
23-
<text x="85.5" y="15" fill="#fff">Dead</text>
24-
<text x="85.5" y="14">Dead</text>
21+
<text x="32" y="15" fill="#fff">Alt Three</text>
22+
<text x="32" y="14">Alt Three</text>
23+
<text x="86.5" y="15" fill="#fff">Dead</text>
24+
<text x="86.5" y="14">Dead</text>
2525
</g>
2626
<a xlink:href="undefined">
27-
<rect id="llink" stroke="#d5d5d5" fill="url(#a)" x=".5" y=".5" width="60" height="19" rx="2"/>
27+
<rect id="llink" stroke="#d5d5d5" fill="url(#a)" x=".5" y=".5" width="62" height="19" rx="2"/>
2828
</a>
2929
</svg>

tests/Calculator/GDTextSizeCalculatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
it('can calculate the width of text', function () {
66
$calculator = new GDTextSizeCalculator(realpath(__DIR__.'/../../resources/fonts/DejaVuSans.ttf'));
77

8-
expect($calculator->calculateWidth('Alt Three'))->toBe(60.0);
8+
expect($calculator->calculateWidth('Alt Three'))->toBe(62.0);
99
});

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function getPackageProviders($app)
2828
protected function getPackageAliases($app)
2929
{
3030
return [
31-
'Badger' => 'Cachet\Badger\Facades\Badger',
31+
'Badger' => 'Cachet\\Badger\\Facades\\Badger',
3232
];
3333
}
3434
}

0 commit comments

Comments
 (0)