Skip to content

Commit 28e6e0d

Browse files
authored
chore: modernize phpunit (#529)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1e8c66c commit 28e6e0d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

phpunit.dist.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@
33
xsi:noNamespaceSchemaLocation="tools/phpunit/vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
cacheResultFile=".phpunit.cache/test-results"
6+
cacheDirectory=".phpunit.cache"
67
executionOrder="depends,defects"
78
requireCoverageMetadata="true"
89
beStrictAboutCoverageMetadata="true"
910
beStrictAboutOutputDuringTests="true"
11+
beStrictAboutChangesToGlobalState="true"
1012
beStrictAboutTodoAnnotatedTests="true"
13+
beStrictAboutTestsThatDoNotTestAnything="true"
14+
displayDetailsOnIncompleteTests="true"
15+
displayDetailsOnSkippedTests="true"
16+
displayDetailsOnTestsThatTriggerNotices="false"
17+
displayDetailsOnTestsThatTriggerDeprecations="true"
18+
displayDetailsOnTestsThatTriggerWarnings="true"
19+
displayDetailsOnTestsThatTriggerErrors="true"
1120
failOnRisky="true"
1221
failOnWarning="true"
22+
failOnSkipped="false"
1323
defaultTestSuite="default"
1424
>
1525
<testsuites>

tools/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"php": "^8.1.31"
77
},
88
"require-dev": {
9-
"phpunit/phpunit": "10.5.41",
9+
"phpunit/phpunit": "10.5.45||11.5.7||12.0.2",
1010
"roave/security-advisories": "dev-latest"
1111
},
1212
"prefer-stable": true,

0 commit comments

Comments
 (0)