Skip to content

Commit 3db7f98

Browse files
committed
test: upgrade phpunit.xml
1 parent 4682fee commit 3db7f98

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

phpunit.xml.dist

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
colors="true"
4-
processIsolation="false"
5-
stopOnFailure="false"
6-
bootstrap="vendor/autoload.php"
7-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
processIsolation="false"
7+
stopOnFailure="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
89

910
<!-- Add any additional test suites you want to run here -->
1011
<testsuites>
@@ -13,15 +14,21 @@
1314
</testsuite>
1415
</testsuites>
1516

17+
<coverage includeUncoveredFiles="true"
18+
pathCoverage="false"
19+
ignoreDeprecatedCodeUnits="true"
20+
disableCodeCoverageIgnore="true">
21+
<report>
22+
<clover outputFile="build/logs/clover.xml"/>
23+
<html outputDirectory="build/html" lowUpperBound="50" highLowerBound="90"/>
24+
</report>
25+
</coverage>
26+
1627
<!-- Ignore vendor tests in code coverage reports -->
17-
<filter>
18-
<whitelist processUncoveredFilesFromWhitelist="true">
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
23-
<logging>
24-
<log type="coverage-clover" target="build/logs/clover.xml"/>
25-
<log type="coverage-html" target="build/html"/>
26-
</logging>
28+
<source>
29+
<include>
30+
<directory>./src</directory>
31+
</include>
32+
</source>
33+
2734
</phpunit>

0 commit comments

Comments
 (0)