<?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>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_MAINTENANCE_DRIVER" value="file"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="BROADCAST_CONNECTION" value="null"/>
        <env name="CACHE_STORE" value="array"/>
        <!-- Real MySQL, not sqlite :memory: — this project's migrations
             include 3 MySQL-only raw `ALTER TABLE ... MODIFY` statements
             (documented in each migration: avoids adding doctrine/dbal as a
             dependency for a handful of column changes) that sqlite cannot
             run at all. Production is MySQL-only too, so testing against the
             same engine is also more representative, not just a
             workaround. Uses the same DB_HOST/DB_USERNAME/DB_PASSWORD as the
             real .env (only DB_DATABASE differs) — create the database once
             with `CREATE DATABASE klbra_testing` before running tests. -->
        <env name="DB_CONNECTION" value="mysql"/>
        <env name="DB_DATABASE" value="klbra_testing"/>
        <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>
