Skip to content

Commit

Permalink
Configure PhpUnit for Github automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemke committed Feb 26, 2021
1 parent 72c3c80 commit 2bdf29a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"ext-zlib": "*",
"predis/predis": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "~8.0",
"phpunit/php-code-coverage": "*"
},
"autoload": {
"psr-4": {
"Flownative\\Prometheus\\": "Classes"
Expand Down
22 changes: 22 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>

<testsuites>
<testsuite name="flownative/prometheus Test Suite">
<directory>./Tests/Unit/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./Classes</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 2bdf29a

Please sign in to comment.