Repository navigation
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
47 lines (43 loc) · 1.6 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
47 lines (43 loc) · 1.6 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
The integration suite: a real WordPress, a real database, the WordPress
test library.
Every attribute and element here is valid on PHPUnit 9, which is what
composer.json pins (^9.6, because that is what the WordPress test library
requires). `cacheDirectory` and `<source>` are PHPUnit 10 spellings and
were both in this file: 9.6 does not fail on them, it prints "The
configuration file did not pass validation" and carries on, which is a
warning nobody reads in a log that also has failures in it.
phpunit-unit.xml.dist already said this; this file had not been run since
it was written.
-->
<phpunit
bootstrap="tests/bootstrap.php"
colors="true"
cacheResultFile=".phpunit.result.cache"
failOnRisky="false"
failOnWarning="false"
stopOnError="false"
stopOnFailure="false"
>
<extensions>
<!-- See tests/TransactionHarness.php: WP_UnitTestCase's own transaction
is what isolates one test from the next, and our write paths must
not commit it out from under the suite. -->
<extension class="FolderFolio\Tests\TransactionHarness"/>
</extensions>
<testsuites>
<testsuite name="integration">
<directory suffix="Test.php">./tests/Integration</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./includes</directory>
</include>
</coverage>
<php>
<ini name="display_errors" value="1"/>
<ini name="error_reporting" value="E_ALL"/>
</php>
</phpunit>