phpunit.xml.dist
Rama 3.1.x · réplica de lectura del repositorio original.
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/13.2/phpunit.xsd"
colors="true"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnPhpunitNotice="true"
failOnPhpunitDeprecation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutChangesToGlobalState="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnPhpunitDeprecations="true"
displayDetailsOnPhpunitNotices="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
stderr="true"
>
<!--
The installation tests drive a real browser against a Panther-managed web server, which
runs in its own process with its own database connection. That makes them incompatible
with the rest of the suite: they cannot see data inside dama/doctrine-test-bundle's
uncommitted transaction, their own writes are never rolled back, and their setUp()
deletes SOLIDINVOICE_CONFIG_DIR (var/cache/test/config) - a path shared by every
paratest worker.
They are therefore excluded by default, so `bin/phpunit` and `bin/paratest` run the rest
of the suite cleanly. Run them explicitly with `bin/phpunit` and the "group" option set
to "installation" (without paratest). An explicit group option on the command line
overrides this exclusion. See the "Run installation tests" step in unit-tests.yml.
-->
<groups>
<exclude>
<group>installation</group>
</exclude>
</groups>
<testsuites>
<testsuite name="SolidInvoice Test Suite">
<directory>src/*Bundle/Tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="display_errors" value="1"/>
<ini name="error_reporting" value="-1"/>
<env name="PANTHER_NO_HEADLESS" value="0"/>
<env name="PANTHER_APP_ENV" value="test"/>
<env name="SOLIDINVOICE_DATABASE_URL" value="sqlite:///%kernel.cache_dir%/solidinvoice_%app_mode%_%env(default:app_mode:TEST_TOKEN)%.db"/>
<server name="SOLIDINVOICE_APP_SECRET" value="$ecretf0rt3st"/>
<server name="SOLIDINVOICE_ENV" value="test"/>
<server name="SOLIDINVOICE_DEBUG" value="0"/>
<server name="APP_ENV" value="test"/>
<server name="APP_DEBUG" value="0"/>
<server name="KERNEL_CLASS" value="SolidInvoice\Test\Kernel"/>
<server name="BROWSER_ALWAYS_START_WEBSERVER" value="1"/>
</php>
<extensions>
<bootstrap class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
<bootstrap class="Symfony\Component\Panther\ServerExtension"/>
<bootstrap class="Zenstruck\Browser\Test\BrowserExtension"/>
<bootstrap class="Zenstruck\Foundry\PHPUnit\FoundryExtension">
<parameter name="enabled-auto-reset" value="true"/>
</bootstrap>
</extensions>
<source>
<include>
<directory>src</directory>
</include>
<exclude>
<directory>src/*Bundle/Resources</directory>
<directory>src/*Bundle/Tests</directory>
</exclude>
</source>
</phpunit>