Skip to content

Commit 708c335

Browse files
fix(phpunit): PHPUnit 12 coverage source + valid schema for CI
Move includes to <source> (PHPUnit 12 no longer reads <coverage>/<include>). Drop removed root attributes; use backupStaticProperties. Set failOnPhpunitWarning=false so configuration warnings do not fail the build. Co-authored-by: Zakhar <zahar.guzenko@gmail.com>
1 parent 448d07c commit 708c335

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

phpunit.xml.dist

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit bootstrap="vendor/autoload.php"
33
backupGlobals="false"
4-
backupStaticAttributes="false"
4+
backupStaticProperties="false"
55
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
106
processIsolation="false"
11-
stopOnFailure="false">
7+
stopOnFailure="false"
8+
failOnPhpunitWarning="false">
129
<testsuites>
1310
<testsuite name="Behat Api Context Test Suite">
1411
<directory>tests</directory>
1512
</testsuite>
1613
</testsuites>
17-
<coverage>
14+
<source>
1815
<include>
1916
<directory>./src</directory>
2017
</include>
18+
</source>
19+
<coverage>
2120
<report>
2221
<clover outputFile="clover.xml"/>
2322
</report>

0 commit comments

Comments
 (0)