<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         colors="true"
>
    <testsuites>
        <testsuite name="Unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
        <testsuite name="Feature">
            <directory suffix="Test.php">./tests/Feature</directory>
        </testsuite>
    </testsuites>
    <source>
        <include>
            <directory suffix=".php">./app</directory>
        </include>
    </source>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="APP_URL" value="http://localhost"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_STORE" value="array"/>
        <!--
            The kill switch, pinned so a suite run never inherits it from whichever `.env` the
            machine happens to have. Two entries, two different jobs:

            `<server>` is the pin. Laravel's `env()` reads `$_SERVER` first, and PHPUnit writes
            that one unconditionally — `force` is neither needed nor honoured there.

            `<env>` covers what reads `getenv()` or `$_ENV` instead, including a child process.
            `force` because PHPUnit leaves those alone when the process already exports the
            variable, which is how an unforced entry quietly decides nothing.

            Why the code's own default is not proved from here: see CsAgentSwitchTest.
        -->
        <env name="CS_AGENT_ENABLED" value="false" force="true"/>
        <server name="CS_AGENT_ENABLED" value="false"/>
        <env name="DB_DATABASE" value="testing"/>
        <env name="MAIL_MAILER" value="array"/>
        <env name="QUEUE_CONNECTION" value="sync"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="TELESCOPE_ENABLED" value="false"/>
    </php>
</phpunit>
