Skip to content

Commit 82677af

Browse files
committed
Migrate to PHPUnit 9 configuration schema
1 parent 1d8cd32 commit 82677af

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

phpunit.xml.dist

+21-29
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
cacheResult="false"
12-
>
13-
<testsuites>
14-
<testsuite name="ayesh/php-timer Package Test Suite">
15-
<directory suffix=".php">./tests/</directory>
16-
</testsuite>
17-
</testsuites>
18-
<logging>
19-
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
20-
<log type="coverage-html" target="build/logs/html"/>
21-
<!-- <log type="coverage-clover" target="build/logs/clover.xml"/>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" cacheResult="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
<report>
8+
<html outputDirectory="build/logs/html"/>
9+
<text outputFile="php://stdout" showUncoveredFiles="false"/>
10+
</report>
11+
</coverage>
12+
<testsuites>
13+
<testsuite name="ayesh/php-timer Package Test Suite">
14+
<directory suffix=".php">./tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
<logging>
18+
<!-- <log type="coverage-clover" target="build/logs/clover.xml"/>
2219
<log type="coverage-html" target="build/logs/html"/>-->
23-
</logging>
24-
<filter>
25-
<whitelist processUncoveredFilesFromWhitelist="true">
26-
<directory suffix=".php">./src</directory>
27-
</whitelist>
28-
</filter>
29-
<listeners>
30-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
31-
</listeners>
20+
</logging>
21+
<listeners>
22+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
23+
</listeners>
3224
</phpunit>

0 commit comments

Comments
 (0)