Skip to content

Commit

Permalink
Added test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fortSQ committed Sep 13, 2024
1 parent b1a1ac8 commit a4b01d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": [
"@putenv XDEBUG_MODE=coverage",
"phpunit --coverage-text"
]
},
"config": {
"preferred-install": "dist",
Expand Down
8 changes: 7 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests</directory>
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>

<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>

0 comments on commit a4b01d1

Please sign in to comment.