Skip to content

Commit 0576c02

Browse files
jrfnlkukulich
authored andcommitted
PHPUnit config: upgrade to 10.3 schema
This upgrades the XML configuration to one accepted by PHPUnit 10.3 and higher, which is in line with the PHPUnit requirements in the `composer.json` file. Note: the configuration will not validate for PHPUnit < 10.3 and will throw warnings, but as code coverage in CI is only run with PHPUnit 10 and the warnings are about that part of the configuration, this is nothing to worry about. Moreover, on PHPUnit 8.x/9.x, those warnings won't fail the build and the tests will still be run.
1 parent 92b40dc commit 0576c02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

phpunit.xml.dist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
55
bootstrap="tests/bootstrap.php"
66
colors="true"
77
backupGlobals="false"
@@ -26,10 +26,12 @@
2626
<directory suffix="Test.php">./tests/</directory>
2727
</testsuite>
2828
</testsuites>
29-
<coverage>
29+
<source>
3030
<include>
3131
<directory suffix=".php">SlevomatCodingStandard</directory>
3232
</include>
33+
</source>
34+
<coverage>
3335
<report>
3436
<clover outputFile="temp/coverage.xml"/>
3537
<html outputDirectory="temp/coverage"/>

0 commit comments

Comments
 (0)