-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpunit.xml
More file actions
46 lines (39 loc) · 1.3 KB
/
phpunit.xml
File metadata and controls
46 lines (39 loc) · 1.3 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
colors="true"
executionOrder="depends,defects"
beStrictAboutChangesToGlobalState="true"
displayDetailsOnTestsThatTriggerWarnings="true"
failOnWarning="false"
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory>vendor</directory>
<directory>tests</directory>
</exclude>
</source>
<!-- PHP + CI4-related env -->
<php>
<!-- common CI4 testing env flags -->
<env name="APP_ENV" value="testing"/>
<env name="CI_ENVIRONMENT" value="testing"/>
<!-- useful if anything -->
<env name="app.baseURL" value="http://localhost/"/>
<!-- testDB:
<env name="database.default.DBDriver" value="SQLite3"/>
<env name="database.default.database" value=":memory:"/>
-->
</php>
</phpunit>