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

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.3/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
         failOnRisky="true"
         failOnWarning="true"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <ini name="intl.default_locale" value="en" />
        <ini name="intl.error_level" value="0" />
        <ini name="memory_limit" value="-1" />
        <env name="DUMP_LIGHT_ARRAY" value="" />
        <env name="DUMP_STRING_LENGTH" value="" />
        <env name="LDAP_HOST" value="localhost" />
        <env name="LDAP_PORT" value="3389" />
        <env name="REDIS_HOST" value="localhost" />
        <env name="REDIS_SOCKET" value="/var/run/redis/redis-server.sock" />
        <env name="MESSENGER_REDIS_DSN" value="redis://localhost/messages" />
        <env name="MEMCACHED_HOST" value="localhost" />
        <env name="MONGODB_HOST" value="localhost" />
        <env name="ZOOKEEPER_HOST" value="localhost" />
        <env name="COUCHBASE_HOST" value="localhost" />
        <env name="COUCHBASE_USER" value="Administrator" />
        <env name="COUCHBASE_PASS" value="111111" />
    </php>

    <testsuites>
        <testsuite name="Symfony Test Suite">
            <directory>./src/Symfony/Bridge/*/Tests/</directory>
            <directory>./src/Symfony/Component/*/Tests/</directory>
            <directory>./src/Symfony/Component/*/*/Tests/</directory>
            <directory>./src/Symfony/Component/*/*/*/Tests/</directory>
            <directory>./src/Symfony/Contract/*/Tests/</directory>
            <directory>./src/Symfony/Bundle/*/Tests/</directory>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>benchmark</group>
            <group>intl-data</group>
        </exclude>
    </groups>

    <coverage>
        <include>
            <directory>./src/Symfony/</directory>
        </include>
        <exclude>
            <directory>./src/Symfony/Bridge/*/Tests</directory>
            <directory>./src/Symfony/Component/*/Tests</directory>
            <directory>./src/Symfony/Component/*/*/Tests</directory>
            <directory>./src/Symfony/Contract/*/Tests</directory>
            <directory>./src/Symfony/Bundle/*/Tests</directory>
            <directory>./src/Symfony/Bundle/*/Resources</directory>
            <directory>./src/Symfony/Component/*/Resources</directory>
            <directory>./src/Symfony/Component/*/*/Resources</directory>
            <directory>./src/Symfony/Bridge/*/vendor</directory>
            <directory>./src/Symfony/Bundle/*/vendor</directory>
            <directory>./src/Symfony/Component/*/vendor</directory>
            <directory>./src/Symfony/Component/*/*/vendor</directory>
            <directory>./src/Symfony/Contract/*/vendor</directory>
        </exclude>
    </coverage>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
            <arguments>
                <array>
                    <element key="time-sensitive">
                        <array>
                            <element key="0"><string>Cache\IntegrationTests</string></element>
                            <element key="1"><string>Symfony\Bridge\Doctrine\Middleware\Debug</string></element>
                            <element key="2"><string>Symfony\Component\Cache</string></element>
                            <element key="3"><string>Symfony\Component\Cache\Tests\Fixtures</string></element>
                            <element key="4"><string>Symfony\Component\Cache\Tests\Traits</string></element>
                            <element key="5"><string>Symfony\Component\Cache\Traits</string></element>
                            <element key="6"><string>Symfony\Component\Console</string></element>
                            <element key="7"><string>Symfony\Component\HttpFoundation</string></element>
                            <element key="8"><string>Symfony\Component\Uid</string></element>
                        </array>
                    </element>
                </array>
            </arguments>
        </listener>
    </listeners>
</phpunit>
