<?xml version="1.0" encoding="UTF-8"?>

<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" />

        <!-- Variables Symfony -->
        <server name="APP_ENV"      value="test"            force="true"/>
        <server name="KERNEL_CLASS" value="App\Kernel"      force="true"/>
        <!-- Redirige Doctrine vers SQLite in-memory pour les tests -->
        <server name="DATABASE_URL" value="sqlite:///:memory:" 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 processUncoveredFiles="true">
        <include>
            <directory suffix=".php">src</directory>
        </include>
    </coverage>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
    </listeners>
</phpunit>
