Repository navigation
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
79 lines (70 loc) · 2.96 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
79 lines (70 loc) · 2.96 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?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"
cacheDirectory=".phpunit.cache"
colors="true"
columns="max"
executionOrder="defects"
resolveDependencies="true"
beStrictAboutOutputDuringTests="true"
failOnRisky="true"
failOnWarning="true"
failOnNotice="true"
failOnDeprecation="true"
failOnPhpunitDeprecation="true"
failOnEmptyTestSuite="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnPhpunitDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnSkippedTests="true"
displayDetailsOnIncompleteTests="true">
<!--
The pyramid, expressed as suites:
unit no container, no database — capture semantics, metadata, models
integration a booted kernel and a real EntityManager — the onFlush contract
bridge the optional integrations (API Platform, Gedmo), each skipped
when its optional dependency is absent
-->
<testsuites>
<testsuite name="unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="integration">
<directory>tests/Integration</directory>
</testsuite>
<testsuite name="bridge">
<directory>tests/Bridge</directory>
</testsuite>
</testsuites>
<!--
restrictNotices/restrictWarnings keep the build honest without making it hostage to
vendor churn: an issue only fails the run when it originates in src/.
-->
<source restrictNotices="true"
restrictWarnings="true"
ignoreIndirectDeprecations="true">
<include>
<directory>src</directory>
</include>
</source>
<coverage ignoreDeprecatedCodeUnits="true"/>
<php>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="-1"/>
<!--
No `force` attribute anywhere below: a value already present in the environment
wins. That is what lets the Postgres CI job (and you, locally) run the exact same
suites against a real server simply by exporting DATABASE_URL, for example:
DATABASE_URL="postgresql://audit:audit@127.0.0.1:5432/audit_trail?serverVersion=17"
The default is an in-memory SQLite database so `composer test` works on a fresh
clone with zero setup.
-->
<env name="DATABASE_URL" value="pdo-sqlite:///:memory:"/>
<env name="APP_ENV" value="test"/>
<env name="APP_DEBUG" value="1"/>
<env name="SHELL_VERBOSITY" value="-1"/>
</php>
</phpunit>