Skip to content

Commit ce0407e

Browse files
committed
refac: migrate phpunit.dist.xml and fix max deprecation setting
1 parent 890edcc commit ce0407e

File tree

1 file changed

+23
-36
lines changed

1 file changed

+23
-36
lines changed

phpunit.xml.dist

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="false"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
bootstrap="./vendor/autoload.php"
12-
>
13-
<php>
14-
<env name="ENV" value="test" />
15-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=29&amp;verbose=1" />
16-
<env name="KERNEL_CLASS" value="Nyholm\BundleTest\TestKernel" />
17-
</php>
18-
19-
<listeners>
20-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
21-
</listeners>
22-
23-
<testsuites>
24-
<testsuite name="Test Suite">
25-
<directory>./Tests</directory>
26-
</testsuite>
27-
</testsuites>
28-
29-
<filter>
30-
<whitelist>
31-
<directory suffix=".php">./</directory>
32-
<exclude>
33-
<directory>vendor</directory>
34-
<directory>Tests</directory>
35-
</exclude>
36-
</whitelist>
37-
</filter>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="./vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">./</directory>
6+
</include>
7+
<exclude>
8+
<directory>vendor</directory>
9+
<directory>Tests</directory>
10+
</exclude>
11+
</coverage>
12+
<php>
13+
<env name="ENV" value="test"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=84&amp;max[self]=1&amp;verbose=1"/>
15+
<env name="KERNEL_CLASS" value="Nyholm\BundleTest\TestKernel"/>
16+
</php>
17+
<listeners>
18+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
19+
</listeners>
20+
<testsuites>
21+
<testsuite name="Test Suite">
22+
<directory>./Tests</directory>
23+
</testsuite>
24+
</testsuites>
3825
</phpunit>

0 commit comments

Comments
 (0)