Skip to content

Commit

Permalink
PHPUnit config: upgrade to 10.3 schema
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl authored and kukulich committed Oct 4, 2023
1 parent 92b40dc commit 0576c02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
backupGlobals="false"
Expand All @@ -26,10 +26,12 @@
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">SlevomatCodingStandard</directory>
</include>
</source>
<coverage>
<report>
<clover outputFile="temp/coverage.xml"/>
<html outputDirectory="temp/coverage"/>
Expand Down

0 comments on commit 0576c02

Please sign in to comment.