<?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"
         failOnRisky="true"
         failOnWarning="true"
         cacheDirectory=".phpunit.cache">
    <testsuites>
        <testsuite name="kernel">
            <directory>tests</directory>
        </testsuite>
    </testsuites>
    <php>
        <!-- The suite always runs against SQLite; it additionally runs against MySQL
             when a test database is reachable (dual-dialect rule, doc 12 §7/§10).
             Set MYSQL_TEST_DISABLED=1 to skip the MySQL side locally. -->
        <env name="MYSQL_TEST_HOST" value="127.0.0.1"/>
        <env name="MYSQL_TEST_PORT" value="3306"/>
        <env name="MYSQL_TEST_DB" value="cafe_test"/>
        <env name="MYSQL_TEST_USER" value="cafe"/>
        <env name="MYSQL_TEST_PASSWORD" value="cafe_dev_pw"/>
    </php>
    <source>
        <include>
            <directory>src</directory>
        </include>
    </source>
</phpunit>
