Skip to content

Commit 17570c4

Browse files
authored
Added type coverage badge (#206)
1 parent 277f7a3 commit 17570c4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PHP Matcher
22

3+
[![Type Coverage](https://shepherd.dev/github/coduo/php-matcher/coverage.svg)](https://shepherd.dev/coduo/php-matcher)
4+
35
Library created for testing all kinds of JSON/XML/TXT/Scalar values against patterns.
46

57
API:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"phpunit"
5353
],
5454
"static:analyze": [
55-
"tools/psalm",
55+
"tools/psalm --shepherd --stats",
5656
"tools/phpstan analyze -c phpstan.neon",
5757
"tools/php-cs-fixer fix --dry-run"
5858
]

phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
bootstrap="vendor/autoload.php"
77
cacheResultFile="var/phpunit/.result.cache"
88
>
9+
<logging>
10+
<log type="coverage-html" target="var/phpunit/coverage/html" lowUpperBound="80" highLowerBound="100"/>
11+
</logging>
912
<testsuites>
1013
<testsuite name="PHP Matcher Test Suite">
1114
<directory>./tests/</directory>

0 commit comments

Comments
 (0)