<?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"
         stopOnFailure="false"
         failOnRisky="true"
         failOnWarning="true"
         failOnDeprecation="false"
         cacheDirectory=".phpunit.cache">
    <testsuites>
        <testsuite name="unit">
            <directory>tests/Unit</directory>
        </testsuite>
        <testsuite name="integration">
            <directory>tests/Integration</directory>
        </testsuite>
        <testsuite name="architecture">
            <directory>tests/Architecture</directory>
        </testsuite>
    </testsuites>
    <!-- Required by PHPUnit 11: without it, coverage reports come out empty. -->
    <source>
        <include>
            <directory>src</directory>
        </include>
    </source>
    <php>
        <ini name="date.timezone" value="Asia/Tehran"/>
        <env name="APP_ENV" value="testing"/>
        <env name="APP_TIMEZONE" value="Asia/Tehran"/>
        <env name="JWT_SECRET" value="test-secret-32-characters-long-123456"/>
        <env name="DB_DATABASE" value="anbt_test"/>
    </php>
</phpunit>
