phpunit.xml
Uses isolated in-memory SQLite, never the application database. Preserve additional test suites in supplied projects.
What it is
Complete brokerage practice file. The Assemble project page lists every file in order.
When to use it
Uses isolated in-memory SQLite, never the application database. Preserve additional test suites in supplied projects.
Syntax
mkdir -p '.'
# Paste the Example below into phpunit.xmlExample
<?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"
cacheResult="false"
>
<testsuites>
<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="EXCHANGE_DEMO" value="false" force="true"/>
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="CACHE_STORE" value="array" force="true"/>
<env name="DB_CONNECTION" value="sqlite" force="true"/>
<env name="DB_DATABASE" value=":memory:" force="true"/>
<env name="SESSION_DRIVER" value="array" force="true"/>
</php>
</phpunit>
Common mistakes
Use the setup runbook first. Adapt provisional API assumptions to the supplied contract. Merge into supplied applications; do not duplicate the orders migration.