Repository navigation
Expand file tree
/
Copy pathphpunit.xml
More file actions
44 lines (43 loc) · 1.78 KB
/
Copy pathphpunit.xml
File metadata and controls
44 lines (43 loc) · 1.78 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="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true">
<!--
The Unit suite only, on Pest 5. No WordPress, no database: WordPress functions
are mocked with Brain Monkey.
The Integration suite is not here. It runs in its own process from its own
Composer setup, tests/Integration/composer.json and tests/Integration/phpunit.xml,
on PHPUnit 9.6 (composer test:integration).
-->
<!--
The whole Unit suite in one process peaked at 119M on master at 25ebd28e (macOS, PHP 8.5), and the
dead link cleanup tests (#1442) take it to 135M, past the 128M default of the PHP that Laravel Herd
installs. Set here, the limit is the same under every PHP the suite runs on. PHPUnit sets it
unconditionally, so a larger limit given on the command line (php -d memory_limit=...) is
lowered to this one.
-->
<php>
<ini name="memory_limit" value="512M"/>
</php>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<source>
<include>
<file>./uamswp-find-a-doc.php</file>
<file>./required-plugins.php</file>
<directory suffix=".php">./includes</directory>
<directory suffix=".php">./templates</directory>
</include>
<exclude>
<directory>./includes/_unused</directory>
</exclude>
</source>
</phpunit>