tests/TestCase.php bootstraps app via Core\Boot::app() with kernel bootstrap. DatabaseTransactions for test isolation. PHPUnit config with array cache/session. 12 tests written, unit tests pass. HTTP endpoint tests need chain daemon mock to run standalone. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
701 B
XML
19 lines
701 B
XML
<?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"
|
|
cacheDirectory=".phpunit.cache">
|
|
<testsuites>
|
|
<testsuite name="Mod">
|
|
<directory>app/Mod/*/Tests</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<php>
|
|
<env name="APP_ENV" value="testing"/>
|
|
<env name="DB_CONNECTION" value="mariadb"/>
|
|
<env name="DB_DATABASE" value="lthn_io"/>
|
|
<env name="CACHE_STORE" value="array"/>
|
|
<env name="SESSION_DRIVER" value="array"/>
|
|
</php>
|
|
</phpunit>
|