Skip to content

Commit 5688875

Browse files
committed
minor #1503 [Twig][Live] Migrate PHPUnit configuration (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Twig][Live] Migrate PHPUnit configuration ``` Warning: Your XML configuration validates against a deprecated schema. Suggestion: Migrate your XML configuration using "--migrate-configuration"! ``` (will batch the other ones if there are no bad surprises in the CI with those ones) Commits ------- 238866d [Twig][Live] Migrate PHPUnit configuration
2 parents fa24da6 + 238866d commit 5688875

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

src/LiveComponent/phpunit.xml.dist

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
43
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
54
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
@@ -8,10 +7,16 @@
87
failOnRisky="true"
98
failOnWarning="true"
109
>
10+
<coverage processUncoveredFiles="true">
11+
<include>
12+
<directory suffix=".php">./src</directory>
13+
</include>
14+
</coverage>
15+
1116
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\LiveComponent\Tests\Fixtures\Kernel" />
14-
<server name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db" />
17+
<ini name="error_reporting" value="-1"/>
18+
<server name="KERNEL_CLASS" value="Symfony\UX\LiveComponent\Tests\Fixtures\Kernel"/>
19+
<server name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db"/>
1520
<env name="SHELL_VERBOSITY" value="-1"/>
1621
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1722
</php>
@@ -22,12 +27,6 @@
2227
</testsuite>
2328
</testsuites>
2429

25-
<filter>
26-
<whitelist processUncoveredFilesFromWhitelist="true">
27-
<directory suffix=".php">./src</directory>
28-
</whitelist>
29-
</filter>
30-
3130
<listeners>
3231
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
3332
</listeners>

src/TwigComponent/phpunit.xml.dist

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
43
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
54
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
@@ -8,9 +7,15 @@
87
failOnRisky="true"
98
failOnWarning="true"
109
>
10+
<coverage processUncoveredFiles="true">
11+
<include>
12+
<directory suffix=".php">./src</directory>
13+
</include>
14+
</coverage>
15+
1116
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\TwigComponent\Tests\Fixtures\Kernel" />
17+
<ini name="error_reporting" value="-1"/>
18+
<server name="KERNEL_CLASS" value="Symfony\UX\TwigComponent\Tests\Fixtures\Kernel"/>
1419
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1520
</php>
1621

@@ -20,12 +25,6 @@
2025
</testsuite>
2126
</testsuites>
2227

23-
<filter>
24-
<whitelist processUncoveredFilesFromWhitelist="true">
25-
<directory suffix=".php">./src</directory>
26-
</whitelist>
27-
</filter>
28-
2928
<listeners>
3029
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
3130
</listeners>

0 commit comments

Comments
 (0)