-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
33 lines (33 loc) · 1.44 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
33 lines (33 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="Heisenberg Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<!-- Default: in-memory SQLite, so `php vendor/bin/phpunit` passes on a
fresh checkout with no external services (§4.16 remediation — this
used to hard-pin MySQL, so BlockPersistenceTest errored in any
environment without a local server). The posts/blocks schema is
fully representable on SQLite (see TestCase::getEnvironmentSetUp()).
A host CI that wants MySQL coverage (blueprint Rule 11, for the
fuller future schema) copies this file to phpunit.xml (gitignored)
and overrides these four envs; BlockPersistenceTest skips gracefully
instead of erroring if that server isn't reachable. -->
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>