<?xml version="1.0" encoding="UTF-8"?>
<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
    bootstrap="vendor/autoload.php"
    cacheDirectory=".phpunit.cache"
    colors="true"
    processIsolation="false"
    stopOnFailure="false">
    <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="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="QUEUE_DRIVER" value="sync"/>
        <env name="MAIL_MAILER" value="array"/>
        <env name="DB_DATABASE" value="multifacturalo_dusk"/>

        <!-- Vacias a proposito, sin importar lo que tenga el .env local del dev.
             config/buho_proxy.php lee estas vars via env(), y EvolutionClient falla
             cerrado (RuntimeException) cuando estan vacias. Sin este override, un
             dev con credenciales reales cargadas localmente (para probar el bot en
             vivo) hace que la suite entera pegue contra el proxy compartido de
             verdad, unos 10 segundos por llamada (medido), y de paso crea
             instancias reales en infraestructura de terceros en cada corrida de
             tests. -->
        <env name="BUHO_PROXY_CLIENT_ID" value=""/>
        <env name="BUHO_PROXY_CLIENT_SECRET" value=""/>
        <env name="EVOLUTION_API_URL" value=""/>
        <env name="EVOLUTION_API_KEY" value=""/>
    </php>
</phpunit>
