Migrate PHPUnit configuration file to current format

This commit is contained in:
Meritoo
2022-09-10 13:40:33 +02:00
parent 5ebf624b7b
commit d4cb732096

View File

@@ -2,7 +2,7 @@
<!-- https://phpunit.readthedocs.io/en/8.2/configuration.html --> <!-- https://phpunit.readthedocs.io/en/8.2/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.2/phpunit.xsd" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false" backupGlobals="false"
bootstrap="vendor/autoload.php" bootstrap="vendor/autoload.php"
colors="true" colors="true"
@@ -10,10 +10,19 @@
forceCoversAnnotation="true" forceCoversAnnotation="true"
verbose="true" verbose="true"
> >
<coverage>
<include>
<directory>src</directory>
</include>
<report>
<clover outputFile="build/reports/coveralls/clover.xml" />
<html outputDirectory="build/reports/phpunit-coverage/html" />
<xml outputDirectory="build/reports/infection/coverage-xml" />
</report>
</coverage>
<php> <php>
<ini name="error_reporting" value="-1" /> <ini name="error_reporting" value="-1" />
</php> </php>
<testsuites> <testsuites>
<testsuite name="Meritoo Package - Main Test Suite"> <testsuite name="Meritoo Package - Main Test Suite">
<directory>tests</directory> <directory>tests</directory>
@@ -22,17 +31,7 @@
<directory>tests/Collection</directory> <directory>tests/Collection</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
<logging> <logging>
<log type="coverage-html" target="build/reports/phpunit-coverage/html" /> <junit outputFile="build/reports/infection/phpunit.junit.xml" />
<log type="coverage-xml" target="build/reports/infection/coverage-xml" />
<log type="junit" target="build/reports/infection/phpunit.junit.xml" />
<log type="coverage-clover" target="build/reports/coveralls/clover.xml" />
</logging> </logging>
</phpunit> </phpunit>