Skip to content

Commit b2240b0

Browse files
committed
fix PHPUnit config
1 parent 5ac53dc commit b2240b0

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

phpunit.xml.dist

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
5-
backupGlobals="false"
6-
colors="true">
7-
<php>
8-
<server name="SYMFONY_PHPUNIT_VERSION" value="9" />
9-
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
10-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0" />
11-
</php>
5+
cacheDirectory=".phpunit.cache"
6+
executionOrder="depends,defects"
7+
shortenArraysForExportThreshold="10"
8+
requireCoverageMetadata="true"
9+
beStrictAboutCoverageMetadata="true"
10+
beStrictAboutOutputDuringTests="true"
11+
displayDetailsOnPhpunitDeprecations="true"
12+
failOnPhpunitDeprecation="true"
13+
failOnRisky="true"
14+
failOnWarning="true">
15+
<testsuites>
16+
<testsuite name="default">
17+
<directory>tests</directory>
18+
</testsuite>
19+
</testsuites>
1220

13-
<coverage>
21+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
1422
<include>
1523
<directory>src</directory>
1624
</include>
17-
</coverage>
18-
19-
<source>
20-
<include>
21-
<directory suffix=".php">src</directory>
22-
</include>
2325
</source>
24-
25-
<testsuites>
26-
<testsuite name="Project Test Suite">
27-
<directory>tests</directory>
28-
</testsuite>
29-
</testsuites>
3026
</phpunit>

0 commit comments

Comments
 (0)