Skip to content

Instantly share code, notes, and snippets.

@rrcfesc
Created April 25, 2022 15:21
Show Gist options
  • Save rrcfesc/80429e7b1c675a48ab3fe0ad802410ee to your computer and use it in GitHub Desktop.
Save rrcfesc/80429e7b1c675a48ab3fe0ad802410ee to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
convertDeprecationsToExceptions="false"
>
<php>
<ini name="display_errors" value="1" />
<ini name="error_reporting" value="-1" />
<env name="APP_ENV" value="test" force="true"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" />
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage cacheDirectory="build"
includeUncoveredFiles="true"
processUncoveredFiles="true"
pathCoverage="true"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="true">
<exclude>
<directory suffix=".php">src/generated</directory>
<file>src/autoload.php</file>
</exclude>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/clover.xml"/>
<crap4j outputFile="build/crap4j.xml" threshold="50"/>
<html outputDirectory="build/" lowUpperBound="50" highLowerBound="90"/>
<php outputFile="build/coverage.php"/>
<text outputFile="build/coverage.txt" showUncoveredFiles="false" showOnlySummary="true"/>
<xml outputDirectory="build"/>
</report>
</coverage>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
<logging>
<junit outputFile="build/junit.xml"/>
<teamcity outputFile="build/teamcity.txt"/>
<testdoxHtml outputFile="build/testdox.html"/>
<testdoxText outputFile="build/testdox.txt"/>
<testdoxXml outputFile="build/testdox.xml"/>
<text outputFile="build/logfile.txt"/>
</logging>
<!-- Run `composer require symfony/panther` before enabling this extension -->
<!--
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment