<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
         bootstrap="tests/bootstrap.php"
         colors="true"
         testdox="true"
         stopOnFailure="false"
         failOnWarning="true">

    <testsuites>
        <testsuite name="Feature Tests">
            <directory>tests/Feature</directory>
        </testsuite>
        <testsuite name="Integration Tests">
            <directory>tests/Integration</directory>
        </testsuite>
    </testsuites>

    <!-- Override env for test isolation -->
    <php>
        <env name="APP_ENV"       value="testing"/>
        <env name="AUTH_BASE_URL" value="http://localhost/projects/SMS-MICROSERVICES/auth-service/public"/>
        <env name="DB_HOST"       value="localhost"/>
        <env name="DB_PORT"       value="3306"/>
        <env name="DB_NAME"       value="emmanylcode_auth"/>
        <env name="DB_USER"       value="root"/>
        <env name="DB_PASS"       value=""/>
        <env name="JWT_SECRET"    value="auth-service-secret-key-change-in-production-2024"/>
        <env name="JWT_ISSUER"    value="emmanylcode-auth"/>
        <env name="JWT_EXPIRATION" value="3600"/>
    </php>

    <source>
        <include>
            <directory>app</directory>
        </include>
    </source>
</phpunit>
