classStaticBadge
final class StaticBadge
Checks that a static shields.io badge image shows the value and role its alt text and title declare, so the rendered card cannot mislead.
Methods§
public static function validate(string $url, string $field, string $value): voidChecks a badge image; images from other hosts or paths are not checked.
Parameters
$url | string | The image URL |
$field | string | The field the badge sets |
$value | string | The value in its alt text |
Throws
InvalidInputException When the static image shows another role or valueTest cases 2
Called from 1
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 4
BadgesTestcallsCardReaderTestcallsMarkdownDocumentTestcallsFormatterTestcalls