Skip to content

Commit 2fe2f86

Browse files
committed
Update test after changing svg template
1 parent 9394490 commit 2fe2f86

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

tests/BadgeGeneratorTest.php

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@
77
class BadgeGeneratorTest extends TestCase
88
{
99
const VALID_BADGE = <<<EOT
10-
<svg width="100" height="20" xmlns="http://www.w3.org/2000/svg">
11-
<!-- Created with Method Draw - http://github.com/duopixel/Method-Draw/ -->
12-
13-
<g>
14-
<rect fill="none" id="canvas_background" height="22" width="102" y="-1" x="-1"/>
15-
</g>
16-
<g>
17-
<rect rx="2" id="svg_1" height="18" width="98" y="1" x="1" stroke-width="1.5" stroke="#4c4c4c" fill="#4c4c4c"/>
18-
<text transform="matrix(0.95, 0, 0, 1.01133, 0.0809801, -0.0237383)" font-weight="normal" xml:space="preserve" text-anchor="start" font-family="'Trebuchet MS', Gadget, sans-serif" font-size="12" id="svg_8" y="14.45" x="2.8" stroke-width="0" stroke="#4c4c4c" fill="#6e747d">coverage</text>
19-
<text transform="matrix(0.95, 0, 0, 1.01133, 0.0809801, -0.0237383)" font-weight="normal" xml:space="preserve" text-anchor="start" font-family="'Trebuchet MS', Gadget, sans-serif" font-size="12" id="svg_3" y="13.9" x="2.2" stroke-width="0" stroke="#4c4c4c" fill="#ffffff">coverage</text>
20-
<rect rx="2" id="svg_5" height="18" width="40.90531" y="1.01077" x="58.13716" stroke-width="1.5" stroke="#e05d44" fill="#e05d44"/>
21-
<rect id="svg_7" height="18" width="10" y="1.01077" x="58.00804" stroke-width="1.5" stroke="#e05d44" fill="#e05d44"/>
22-
<text transform="matrix(0.95, 0, 0, 1.01133, 0.0809801, -0.0237383)" font-weight="normal" xml:space="preserve" text-anchor="end" font-family="'Trebuchet MS', Gadget, sans-serif" font-size="10" id="svg_10" y="14.35" x="99" stroke-width="0" stroke="#4c4c4c" fill="#6e747d">11 %</text>
23-
<text transform="matrix(0.95, 0, 0, 1.01133, 0.0809801, -0.0237383)" font-weight="normal" xml:space="preserve" text-anchor="end" font-family="'Trebuchet MS', Gadget, sans-serif" font-size="10" id="svg_9" y="13.8" x="98.4" stroke-width="0" stroke="#4c4c4c" fill="#ffffff">11 %</text>
24-
</g>
10+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="108" height="20" role="img">
11+
<linearGradient id="s" x2="0" y2="100%">
12+
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
13+
<stop offset="1" stop-opacity=".1"/>
14+
</linearGradient>
15+
<clipPath id="r">
16+
<rect width="108" height="20" rx="3" fill="#fff"/>
17+
</clipPath>
18+
<g clip-path="url(#r)">
19+
<rect width="63" height="20" fill="#555"/>
20+
<rect x="63" width="45" height="20" fill="#e05d44"/>
21+
<rect width="108" height="20" fill="url(#s)"/>
22+
</g>
23+
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110">
24+
<text aria-hidden="true" x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="530">coverage</text>
25+
<text x="315" y="140" transform="scale(.1)" fill="#fff" textLength="530">coverage</text>
26+
<text aria-hidden="true" x="850" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="350">11 %</text>
27+
<text x="850" y="140" transform="scale(.1)" fill="#fff" textLength="350">11 %</text>
28+
</g>
2529
</svg>
2630
EOT;
2731

0 commit comments

Comments
 (0)