Skip to content

Commit 5ea9181

Browse files
committed
Upgrade PHPUnit configuration to 9.5 schema
Test Plan: `php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit` Reviewers: dereckson, DorianWinty Reviewed By: DorianWinty Differential Revision: https://devcentral.nasqueron.org/D2679
1 parent 327396a commit 5ea9181

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

phpunit.xml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4+
backupGlobals="false"
35
backupStaticAttributes="false"
46
bootstrap="bootstrap/autoload.php"
57
colors="true"
@@ -13,17 +15,19 @@
1315
<directory>./tests/</directory>
1416
</testsuite>
1517
</testsuites>
16-
<filter>
17-
<whitelist>
18+
<coverage processUncoveredFiles="true">
19+
<include>
1820
<directory suffix=".php">app/</directory>
19-
</whitelist>
20-
</filter>
21+
</include>
22+
<report>
23+
<html outputDirectory="build/coverage" />
24+
<xml outputDirectory="build/logs/coverage"/>
25+
<clover outputFile="build/logs/clover.xml"/>
26+
<crap4j outputFile="build/logs/crap4j.xml" />
27+
</report>
28+
</coverage>
2129
<logging>
22-
<log type="coverage-html" target="build/coverage"/>
23-
<log type="coverage-clover" target="build/logs/clover.xml"/>
24-
<log type="coverage-crap4j" target="build/logs/crap4j.xml"/>
25-
<log type="coverage-xml" target="build/logs/coverage"/>
26-
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
30+
<junit outputFile="build/logs/junit.xml" />
2731
</logging>
2832
<php>
2933
<env name="APP_ENV" value="testing"/>

0 commit comments

Comments
 (0)