Use PHPunit 9 for unit tests, which can generate coverage at PHP8.

This commit is contained in:
Jan Böhmer 2022-07-23 22:09:02 +02:00
parent 5e366bec32
commit 6705a5db66

View file

@ -1,39 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php">
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd" <coverage processUncoveredFiles="true">
backupGlobals="false" <include>
colors="true" <directory suffix=".php">src</directory>
bootstrap="tests/bootstrap.php" </include>
> </coverage>
<php> <php>
<ini name="error_reporting" value="-1" /> <ini name="error_reporting" value="-1"/>
<server name="APP_ENV" value="test" force="true" /> <server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1" /> <server name="SHELL_VERBOSITY" value="-1"/>
<server name="SYMFONY_PHPUNIT_REMOVE" value="" /> <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
<server name="SYMFONY_PHPUNIT_VERSION" value="8.5" /> <server name="SYMFONY_PHPUNIT_VERSION" value="9"/>
<ini name="memory_limit" value="512M" /> <ini name="memory_limit" value="512M"/>
<ini name="display_errors" value="1" /> <ini name="display_errors" value="1"/>
</php> </php>
<testsuites> <testsuites>
<testsuite name="Project Test Suite"> <testsuite name="Project Test Suite">
<directory>tests</directory> <directory>tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<extensions> <extensions>
<extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension"/> <extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension"/>
</extensions> </extensions>
<listeners> <listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners> </listeners>
</phpunit> </phpunit>