Skip to content

Instantly share code, notes, and snippets.

@j3j5
Last active April 17, 2024 23:15
Show Gist options
  • Save j3j5/a143261dcd5d0d9456c01f854eccecd0 to your computer and use it in GitHub Desktop.
Save j3j5/a143261dcd5d0d9456c01f854eccecd0 to your computer and use it in GitHub Desktop.
Badge from coverage testing
Display the source blob
Display the rendered blob
Raw
<svg width="164.1" height="20" viewBox="0 0 1641 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="PHPUnit Coverage: 92.48%">
<title>PHPUnit Coverage: 92.48%</title>
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="m"><rect width="1641" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#m)">
<rect width="1101" height="200" fill="#555"/>
<rect width="540" height="200" fill="#3C1" x="1101"/>
<rect width="1641" height="200" fill="url(#a)"/>
</g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="60" y="148" textLength="1001" fill="#000" opacity="0.25">PHPUnit Coverage</text>
<text x="50" y="138" textLength="1001">PHPUnit Coverage</text>
<text x="1156" y="148" textLength="440" fill="#000" opacity="0.25">92.48%</text>
<text x="1146" y="138" textLength="440">92.48%</text>
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment