Skip to content

Instantly share code, notes, and snippets.

@grajewsky
Last active November 13, 2020 11:49
Show Gist options
  • Select an option

  • Save grajewsky/562f7e8788974b3348e594a0ede54d32 to your computer and use it in GitHub Desktop.

Select an option

Save grajewsky/562f7e8788974b3348e594a0ede54d32 to your computer and use it in GitHub Desktop.
PHPUnit 9 XML
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
testdox="true"
stopOnFailure="false">
<logging>
<log type="coverage-html" target="resources/coverage" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="resources/clover.xml"/>
<log type="testdox-text" target="resources/testdox.txt"/>
</logging>
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="local"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
</php>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment