Skip to content

Commit c877cd9

Browse files
committed
Migrate PHPUnit configs
1 parent 7241dc4 commit c877cd9

File tree

12 files changed

+209
-240
lines changed

12 files changed

+209
-240
lines changed

src/Autocomplete/phpunit.xml.dist

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
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
>
11+
<coverage processUncoveredFiles="true">
12+
<include>
13+
<directory suffix=".php">./src</directory>
14+
</include>
15+
</coverage>
1116
<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" />
17+
<ini name="error_reporting" value="-1"/>
18+
<server name="KERNEL_CLASS" value="Symfony\UX\Autocomplete\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>
18-
1923
<testsuites>
2024
<testsuite name="symfony/ux-autocomplete Test Suite">
2125
<directory>./tests/</directory>
2226
</testsuite>
2327
</testsuites>
24-
25-
<filter>
26-
<whitelist processUncoveredFilesFromWhitelist="true">
27-
<directory suffix=".php">./src</directory>
28-
</whitelist>
29-
</filter>
30-
3128
<listeners>
3229
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
3330
</listeners>

src/Chartjs/phpunit.xml.dist

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
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+
>
11+
<coverage>
12+
<include>
13+
<directory>./src</directory>
14+
</include>
15+
</coverage>
1116
<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+
<ini name="error_reporting" value="-1"/>
18+
<ini name="intl.default_locale" value="en"/>
19+
<ini name="intl.error_level" value="0"/>
20+
<ini name="memory_limit" value="-1"/>
21+
<env name="SHELL_VERBOSITY" value="-1"/>
1722
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1823
</php>
19-
2024
<testsuites>
2125
<testsuite name="Test Suite">
2226
<directory>tests</directory>
2327
</testsuite>
2428
</testsuites>
25-
26-
<filter>
27-
<whitelist>
28-
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
3129
</phpunit>

src/Cropperjs/phpunit.xml.dist

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
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+
>
11+
<coverage>
12+
<include>
13+
<directory>./src</directory>
14+
</include>
15+
</coverage>
1116
<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+
<ini name="error_reporting" value="-1"/>
18+
<ini name="intl.default_locale" value="en"/>
19+
<ini name="intl.error_level" value="0"/>
20+
<ini name="memory_limit" value="-1"/>
21+
<env name="SHELL_VERBOSITY" value="-1"/>
1722
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1823
</php>
19-
2024
<testsuites>
2125
<testsuite name="Test Suite">
2226
<directory>tests</directory>
2327
</testsuite>
2428
</testsuites>
25-
26-
<filter>
27-
<whitelist>
28-
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
3129
</phpunit>

src/Dropzone/phpunit.xml.dist

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
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+
>
11+
<coverage>
12+
<include>
13+
<directory>./src</directory>
14+
</include>
15+
</coverage>
1116
<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+
<ini name="error_reporting" value="-1"/>
18+
<ini name="intl.default_locale" value="en"/>
19+
<ini name="intl.error_level" value="0"/>
20+
<ini name="memory_limit" value="-1"/>
21+
<env name="SHELL_VERBOSITY" value="-1"/>
1722
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1823
</php>
19-
2024
<testsuites>
2125
<testsuite name="Test Suite">
2226
<directory>tests</directory>
2327
</testsuite>
2428
</testsuites>
25-
26-
<filter>
27-
<whitelist>
28-
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
3129
</phpunit>

src/Icons/phpunit.xml.dist

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
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="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
1010
>
11+
<coverage processUncoveredFiles="true">
12+
<include>
13+
<directory suffix=".php">./src</directory>
14+
</include>
15+
</coverage>
1116
<php>
12-
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\Icons\Tests\Fixtures\TestKernel" />
17+
<ini name="error_reporting" value="-1"/>
18+
<server name="KERNEL_CLASS" value="Symfony\UX\Icons\Tests\Fixtures\TestKernel"/>
1419
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1520
</php>
16-
1721
<testsuites>
1822
<testsuite name="symfony/ux-icons Test Suite">
1923
<directory>./tests/</directory>
2024
</testsuite>
2125
</testsuites>
22-
23-
<filter>
24-
<whitelist processUncoveredFilesFromWhitelist="true">
25-
<directory suffix=".php">./src</directory>
26-
</whitelist>
27-
</filter>
28-
2926
<listeners>
3027
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
3128
</listeners>

src/LazyImage/phpunit.xml.dist

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
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+
>
11+
<coverage>
12+
<include>
13+
<directory>./src</directory>
14+
</include>
15+
</coverage>
1116
<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+
<ini name="error_reporting" value="-1"/>
18+
<ini name="intl.default_locale" value="en"/>
19+
<ini name="intl.error_level" value="0"/>
20+
<ini name="memory_limit" value="-1"/>
21+
<env name="SHELL_VERBOSITY" value="-1"/>
1722
<server name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=./tests/baseline-ignore&amp;max[self]=0&amp;max[direct]=0"/>
1823
</php>
19-
2024
<testsuites>
2125
<testsuite name="Test Suite">
2226
<directory>tests</directory>
2327
</testsuite>
2428
</testsuites>
25-
26-
<filter>
27-
<whitelist>
28-
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
3129
</phpunit>

src/Notify/phpunit.xml.dist

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
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+
>
11+
<coverage>
12+
<include>
13+
<directory>./src</directory>
14+
</include>
15+
</coverage>
1116
<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+
<ini name="error_reporting" value="-1"/>
18+
<ini name="intl.default_locale" value="en"/>
19+
<ini name="intl.error_level" value="0"/>
20+
<ini name="memory_limit" value="-1"/>
21+
<env name="SHELL_VERBOSITY" value="-1"/>
1722
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1823
</php>
19-
2024
<testsuites>
2125
<testsuite name="Test Suite">
2226
<directory>tests</directory>
2327
</testsuite>
2428
</testsuites>
25-
26-
<filter>
27-
<whitelist>
28-
<directory>./src</directory>
29-
</whitelist>
30-
</filter>
3129
</phpunit>
Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
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
>
11+
<coverage processUncoveredFiles="true">
12+
<include>
13+
<directory suffix=".php">./src</directory>
14+
</include>
15+
</coverage>
1116
<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" />
17+
<ini name="error_reporting" value="-1"/>
18+
<server name="KERNEL_CLASS" value="Symfony\UX\Autocomplete\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>
18-
1923
<testsuites>
2024
<testsuite name="symfony/ux-autocomplete Test Suite">
2125
<directory>./tests/</directory>
2226
</testsuite>
2327
</testsuites>
24-
25-
<filter>
26-
<whitelist processUncoveredFilesFromWhitelist="true">
27-
<directory suffix=".php">./src</directory>
28-
</whitelist>
29-
</filter>
30-
3128
<listeners>
3229
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
3330
</listeners>
34-
3531
<extensions>
36-
<extension class="Zenstruck\Browser\Test\BrowserExtension" />
32+
<extension class="Zenstruck\Browser\Test\BrowserExtension"/>
3733
</extensions>
3834
</phpunit>

0 commit comments

Comments
 (0)