Skip to content

Commit e02008f

Browse files
committed
feat: modernize PHPUnit configuration for PHPUnit 10 compatibility
1 parent f0b8eab commit e02008f

File tree

1 file changed

+30
-16
lines changed

1 file changed

+30
-16
lines changed

web/app/phpunit.xml.dist

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="test/bootstrap.php" colors="true">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="tests/bootstrap.php"
5+
colors="true"
6+
cacheDirectory=".phpunit.cache"
7+
executionOrder="random"
8+
requireCoverageMetadata="false"
9+
beStrictAboutCoverageMetadata="true"
10+
beStrictAboutOutputDuringTests="true"
11+
failOnRisky="true"
12+
failOnWarning="true">
313

414
<testsuites>
5-
<testsuite name="PHP Test suite">
6-
<directory>./test/</directory>
15+
<testsuite name="App Test Suite">
16+
<directory>tests</directory>
717
</testsuite>
818
</testsuites>
919

10-
<filter>
11-
<whitelist addUncoveredFilesFromWhitelist="false">
12-
<directory suffix=".php">./src</directory>
13-
<exclude>
14-
<directory suffix=".php">./vendor</directory>
15-
</exclude>
16-
</whitelist>
17-
</filter>
20+
<source>
21+
<include>
22+
<directory suffix=".php">src</directory>
23+
</include>
24+
<exclude>
25+
<directory suffix=".php">vendor</directory>
26+
</exclude>
27+
</source>
1828

1929
<php>
30+
<ini name="display_errors" value="1"/>
31+
<ini name="error_reporting" value="-1"/>
2032
<ini name="date.timezone" value="UTC"/>
2133
</php>
2234

23-
<logging>
24-
<log type="coverage-html" target="./report/phpunit"/>
25-
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
26-
</logging>
27-
</phpunit>
35+
<coverage>
36+
<report>
37+
<html outputDirectory="report/phpunit"/>
38+
<text outputFile="php://stdout" showUncoveredFiles="false"/>
39+
</report>
40+
</coverage>
41+
</phpunit>

0 commit comments

Comments
 (0)