Skip to content

Commit dfd4fe1

Browse files
committed
Migrate PHPUnit configs and homogenize them
1 parent 7241dc4 commit dfd4fe1

File tree

20 files changed

+416
-388
lines changed

20 files changed

+416
-388
lines changed

src/Autocomplete/phpunit.xml.dist

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6-
colors="true"
7-
bootstrap="vendor/autoload.php"
8-
failOnRisky="true"
9-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
1010
>
1111
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\Autocomplete\Tests\Fixtures\Kernel" />
14-
<server name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db" />
12+
<ini name="error_reporting" value="-1"/>
1513
<env name="SHELL_VERBOSITY" value="-1"/>
16-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
15+
<env name="KERNEL_CLASS" value="Symfony\UX\Autocomplete\Tests\Fixtures\Kernel"/>
16+
<env name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db"/>
1717
</php>
1818

1919
<testsuites>
20-
<testsuite name="symfony/ux-autocomplete Test Suite">
21-
<directory>./tests/</directory>
20+
<testsuite name="Symfony UX Autocomplete Test Suite">
21+
<directory>./tests</directory>
2222
</testsuite>
2323
</testsuites>
2424

25-
<filter>
26-
<whitelist processUncoveredFilesFromWhitelist="true">
27-
<directory suffix=".php">./src</directory>
28-
</whitelist>
29-
</filter>
25+
<coverage>
26+
<include>
27+
<directory>./src</directory>
28+
</include>
29+
</coverage>
3030

3131
<listeners>
3232
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>

src/Chartjs/phpunit.xml.dist

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
6-
backupGlobals="false"
7-
colors="true"
8-
bootstrap="vendor/autoload.php"
9-
failOnRisky="true"
10-
failOnWarning="true">
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
>
1111
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<ini name="intl.default_locale" value="en" />
14-
<ini name="intl.error_level" value="0" />
15-
<ini name="memory_limit" value="-1" />
16-
<env name="SHELL_VERBOSITY" value="-1" />
17-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
12+
<ini name="error_reporting" value="-1"/>
13+
<env name="SHELL_VERBOSITY" value="-1"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1815
</php>
1916

2017
<testsuites>
21-
<testsuite name="Test Suite">
22-
<directory>tests</directory>
18+
<testsuite name="Symfony UX Chartjs Test Suite">
19+
<directory>./tests</directory>
2320
</testsuite>
2421
</testsuites>
2522

26-
<filter>
27-
<whitelist>
23+
<coverage>
24+
<include>
2825
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
26+
</include>
27+
</coverage>
28+
29+
<listeners>
30+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
31+
</listeners>
3132
</phpunit>

src/Cropperjs/phpunit.xml.dist

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
6-
backupGlobals="false"
7-
colors="true"
8-
bootstrap="vendor/autoload.php"
9-
failOnRisky="true"
10-
failOnWarning="true">
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
>
1111
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<ini name="intl.default_locale" value="en" />
14-
<ini name="intl.error_level" value="0" />
15-
<ini name="memory_limit" value="-1" />
16-
<env name="SHELL_VERBOSITY" value="-1" />
17-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
12+
<ini name="error_reporting" value="-1"/>
13+
<env name="SHELL_VERBOSITY" value="-1"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1815
</php>
1916

2017
<testsuites>
21-
<testsuite name="Test Suite">
22-
<directory>tests</directory>
18+
<testsuite name="Symfony UX Cropperjs Test Suite">
19+
<directory>./tests</directory>
2320
</testsuite>
2421
</testsuites>
2522

26-
<filter>
27-
<whitelist>
23+
<coverage>
24+
<include>
2825
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
26+
</include>
27+
</coverage>
28+
29+
<listeners>
30+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
31+
</listeners>
3132
</phpunit>

src/Dropzone/phpunit.xml.dist

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
6-
backupGlobals="false"
7-
colors="true"
8-
bootstrap="vendor/autoload.php"
9-
failOnRisky="true"
10-
failOnWarning="true">
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
>
1111
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<ini name="intl.default_locale" value="en" />
14-
<ini name="intl.error_level" value="0" />
15-
<ini name="memory_limit" value="-1" />
16-
<env name="SHELL_VERBOSITY" value="-1" />
17-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
12+
<ini name="error_reporting" value="-1"/>
13+
<env name="SHELL_VERBOSITY" value="-1"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1815
</php>
1916

2017
<testsuites>
21-
<testsuite name="Test Suite">
22-
<directory>tests</directory>
18+
<testsuite name="Symfony UX Dropzone Test Suite">
19+
<directory>./tests</directory>
2320
</testsuite>
2421
</testsuites>
2522

26-
<filter>
27-
<whitelist>
23+
<coverage>
24+
<include>
2825
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
26+
</include>
27+
</coverage>
28+
29+
<listeners>
30+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
31+
</listeners>
3132
</phpunit>

src/Icons/phpunit.xml.dist

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6-
colors="true"
7-
bootstrap="tests/bootstrap.php"
8-
failOnRisky="true"
9-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="tests/bootstrap.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
1010
>
1111
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\Icons\Tests\Fixtures\TestKernel" />
14-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
12+
<ini name="error_reporting" value="-1"/>
13+
<env name="SHELL_VERBOSITY" value="-1"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
15+
<env name="KERNEL_CLASS" value="Symfony\UX\Icons\Tests\Fixtures\TestKernel" />
1516
</php>
1617

1718
<testsuites>
18-
<testsuite name="symfony/ux-icons Test Suite">
19-
<directory>./tests/</directory>
19+
<testsuite name="Symfony UX Icons Test Suite">
20+
<directory>./tests</directory>
2021
</testsuite>
2122
</testsuites>
2223

23-
<filter>
24-
<whitelist processUncoveredFilesFromWhitelist="true">
25-
<directory suffix=".php">./src</directory>
26-
</whitelist>
27-
</filter>
24+
<coverage>
25+
<include>
26+
<directory>./src</directory>
27+
</include>
28+
</coverage>
2829

2930
<listeners>
3031
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>

src/LazyImage/phpunit.xml.dist

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
6-
backupGlobals="false"
7-
colors="true"
8-
bootstrap="vendor/autoload.php"
9-
failOnRisky="true"
10-
failOnWarning="true">
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
>
1111
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<ini name="intl.default_locale" value="en" />
14-
<ini name="intl.error_level" value="0" />
15-
<ini name="memory_limit" value="-1" />
16-
<env name="SHELL_VERBOSITY" value="-1" />
17-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=./tests/baseline-ignore&amp;max[self]=0&amp;max[direct]=0"/>
12+
<ini name="error_reporting" value="-1"/>
13+
<env name="SHELL_VERBOSITY" value="-1"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=./tests/baseline-ignore&amp;max[self]=0&amp;max[direct]=0"/>
1815
</php>
1916

2017
<testsuites>
21-
<testsuite name="Test Suite">
22-
<directory>tests</directory>
18+
<testsuite name="Symfony UX LazyImage Test Suite">
19+
<directory>./tests</directory>
2320
</testsuite>
2421
</testsuites>
2522

26-
<filter>
27-
<whitelist>
23+
<coverage>
24+
<include>
2825
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
26+
</include>
27+
</coverage>
28+
29+
<listeners>
30+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
31+
</listeners>
3132
</phpunit>

src/LiveComponent/phpunit.xml.dist

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
910
>
10-
<coverage processUncoveredFiles="true">
11-
<include>
12-
<directory suffix=".php">./src</directory>
13-
</include>
14-
</coverage>
15-
1611
<php>
1712
<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"/>
2013
<env name="SHELL_VERBOSITY" value="-1"/>
21-
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0&amp;quiet[]=indirect&amp;quiet[]=other"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0&amp;quiet[]=indirect&amp;quiet[]=other"/>
15+
<env name="KERNEL_CLASS" value="Symfony\UX\LiveComponent\Tests\Fixtures\Kernel"/>
16+
<env name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db"/>
2217
</php>
2318

2419
<testsuites>
25-
<testsuite name="symfony/ux-live-component Test Suite">
26-
<directory>./tests/</directory>
20+
<testsuite name="Symfony UX LiveComponent Test Suite">
21+
<directory>./tests</directory>
2722
</testsuite>
2823
</testsuites>
2924

25+
<coverage>
26+
<include>
27+
<directory>./src</directory>
28+
</include>
29+
</coverage>
30+
3031
<listeners>
3132
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
3233
</listeners>

0 commit comments

Comments
 (0)