Repository navigation
Expand file tree
/
Copy pathphpunit.xml
More file actions
44 lines (42 loc) · 1.67 KB
/
Copy pathphpunit.xml
File metadata and controls
44 lines (42 loc) · 1.67 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends"
verbose="true">
<testsuites>
<testsuite name="Unit Tests">
<directory>tests/Unit</directory>
<!-- A plugin keeps its tests beside its code, split like the core suites. -->
<directory>plugins/*/tests/Unit</directory>
</testsuite>
<testsuite name="Integration Tests">
<directory>tests/Integration</directory>
<directory>plugins/*/tests/Integration</directory>
</testsuite>
<testsuite name="CLI Tests">
<directory>tests/Cli</directory>
<directory>plugins/*/tests/Cli</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
<directory suffix=".php">system/classes</directory>
</include>
<exclude>
<directory suffix="Test.php">tests</directory>
<directory>vendor</directory>
</exclude>
</coverage>
<php>
<!-- Environment for tests -->
<ini name="display_errors" value="On"/>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="-1"/>
<ini name="max_execution_time" value="0"/>
<!-- Set timezone to UTC for consistent timestamp handling -->
<ini name="date.timezone" value="UTC"/>
</php>
</phpunit>