phpunit.dist.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
stopOnError="true"
stopOnFailure="true"
stopOnIncomplete="true"
stopOnSkipped="true"
stopOnRisky="true">
<testsuites>
<testsuite name="Application Unit Tests">
<directory>./tests/Unit</directory>
</testsuite>
</testsuites>
<!-- Make PHPUnit config usable in 8.5 and 9.x -->
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<!-- Make PHPUnit config usable in 8.5 and 9.x -->
<logging>
<log type="coverage-clover" target="./coverage.xml" />
<log type="coverage-html" target="./coverage" />
</logging>
<!-- Make PHPUnit config usable in 8.5 and 9.x -->
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<clover outputFile="./coverage.xml"/>
<html outputDirectory="./coverage" lowUpperBound="50" highLowerBound="90"/>
</report>
</coverage>
<php>
<env name="XDEBUG_MODE" value="coverage"/>
</php>
</phpunit>