Skip to content

Commit

Permalink
Test with PHPUnit 9 & 10
Browse files Browse the repository at this point in the history
  • Loading branch information
micheh committed Dec 30, 2024
1 parent c406637 commit 5781bfe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"require-dev": {
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^9.0",
"phpunit/phpunit": "^9.3 || ^10.0",
"squizlabs/php_codesniffer": "^3.5.0"
},
"autoload": {
Expand Down
35 changes: 17 additions & 18 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/squizlabs/php_codesniffer/autoload.php"
colors="true"
forceCoversAnnotation="true"
>
<php>
<const name="PHP_CODESNIFFER_IN_TESTS" value="true"/>
<const name="PHP_CODESNIFFER_CBF" value="false"/>
<const name="PHP_CODESNIFFER_VERBOSITY" value="0"/>
</php>
forceCoversAnnotation="true">

<php>
<const name="PHP_CODESNIFFER_IN_TESTS" value="true"/>
<const name="PHP_CODESNIFFER_CBF" value="false"/>
<const name="PHP_CODESNIFFER_VERBOSITY" value="0"/>
</php>

<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</phpunit>

0 comments on commit 5781bfe

Please sign in to comment.