<?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="tests/bootstrap.php"
         colors="true"
>
    <testsuites>
        <testsuite name="Unit">
            <directory>tests/Unit</directory>
        </testsuite>
        <testsuite name="Feature">
            <directory>tests/Feature</directory>
        </testsuite>
    </testsuites>
    <source>
        <include>
            <directory>app</directory>
        </include>
    </source>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="APP_KEY" value="base64:wN82rThhigkI6PlxbQNyEVUaMMb8U9gX6Y9deSMiLxE="/>
        <env name="APP_MAINTENANCE_DRIVER" value="file"/>
        <env name="APP_URL" value="http://localhost"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="BROADCAST_CONNECTION" value="null"/>
        <env name="CACHE_STORE" value="array"/>
        <!-- All three layers must agree on the target: tests/bootstrap.php (authoritative,
             drops and recreates the schema each run), tests/TestCase.php (sets the
             connection at runtime) and this file. They used to disagree: TestCase and
             bootstrap pinned sqlite ':memory:' while these entries said something else,
             which is why editing phpunit.xml or .env.testing alone silently changed
             nothing. sqlite is abandoned for this project: 163/203 at best, with the rest
             failing on what sqlite does not model (implicit column defaults, foreign-key
             enforcement) rather than on application logic. Production is MySQL. -->
        <env name="DB_CONNECTION" value="mysql"/>
        <env name="DB_DATABASE" value="attendance_hub_test"/>
        <env name="DB_URL" value=""/>
        <env name="MAIL_MAILER" value="array"/>
        <env name="QUEUE_CONNECTION" value="sync"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="PULSE_ENABLED" value="false"/>
        <env name="TELESCOPE_ENABLED" value="false"/>
        <env name="NIGHTWATCH_ENABLED" value="false"/>
    </php>
</phpunit>
