Skip to content

Commit 7e66889

Browse files
committed
Drop Symfony PHPUnit bridge for PHPUnit
1 parent ab44abf commit 7e66889

40 files changed

+76
-107
lines changed

.github/workflows/test-turbo.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ jobs:
2828
with:
2929
working-directory: src/Turbo
3030

31-
- name: Install PHPUnit dependencies
32-
working-directory: src/Turbo
33-
run: vendor/bin/simple-phpunit --version
34-
3531
- name: PHPStan
3632
working-directory: src/Turbo
3733
run: vendor/bin/phpstan analyse --no-progress
@@ -93,8 +89,4 @@ jobs:
9389

9490
- name: Run tests
9591
working-directory: src/Turbo
96-
run: |
97-
[ 'lowest' = '${{ matrix.dependency-version }}' ] && export SYMFONY_DEPRECATIONS_HELPER=weak
98-
vendor/bin/simple-phpunit
99-
env:
100-
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=1'
92+
run: vendor/bin/phpunit

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124

125125
- name: ${{ matrix.component }} Tests
126126
working-directory: "src/${{ matrix.component }}"
127-
run: vendor/bin/simple-phpunit
127+
run: vendor/bin/phpunit
128128

129129
tests-js:
130130
runs-on: ubuntu-latest

src/Autocomplete/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
"doctrine/orm": "^2.9.4|^3.0",
3838
"fakerphp/faker": "^1.22",
3939
"mtdowling/jmespath.php": "^2.6",
40+
"phpunit/phpunit": "^10.5",
4041
"symfony/form": "^6.3|^7.0",
4142
"symfony/options-resolver": "^6.3|^7.0",
4243
"symfony/framework-bundle": "^6.3|^7.0",
4344
"symfony/maker-bundle": "^1.40",
44-
"symfony/phpunit-bridge": "^6.3|^7.0",
4545
"symfony/process": "^6.3|^7.0",
4646
"symfony/security-bundle": "^6.3|^7.0",
4747
"symfony/twig-bundle": "^6.3|^7.0",

src/Autocomplete/phpunit.xml.dist

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
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"
5-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6-
colors="true"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" colors="true"
75
bootstrap="vendor/autoload.php"
86
failOnRisky="true"
97
failOnWarning="true"
108
>
119
<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" />
10+
<ini name="error_reporting" value="-1"/>
11+
<server name="KERNEL_CLASS" value="Symfony\UX\Autocomplete\Tests\Fixtures\Kernel"/>
12+
<server name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db"/>
1513
<env name="SHELL_VERBOSITY" value="-1"/>
1614
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1715
</php>
@@ -22,13 +20,9 @@
2220
</testsuite>
2321
</testsuites>
2422

25-
<filter>
26-
<whitelist processUncoveredFilesFromWhitelist="true">
27-
<directory suffix=".php">./src</directory>
28-
</whitelist>
29-
</filter>
30-
31-
<listeners>
32-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
33-
</listeners>
23+
<source>
24+
<include>
25+
<directory>./src</directory>
26+
</include>
27+
</source>
3428
</phpunit>

src/Chartjs/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"require-dev": {
3838
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
39-
"symfony/phpunit-bridge": "^5.4|^6.0|^7.0",
39+
"phpunit/phpunit": "^10.5",
4040
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
4141
"symfony/var-dumper": "^5.4|^6.0|^7.0"
4242
},

src/Chartjs/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
88
bootstrap="vendor/autoload.php"

src/Cropperjs/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"require-dev": {
4141
"symfony/expression-language": "^5.4|^6.0|^7.0",
4242
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
43-
"symfony/phpunit-bridge": "^5.4|^6.0|^7.0",
43+
"phpunit/phpunit": "^10.5",
4444
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
4545
"symfony/var-dumper": "^5.4|^6.0|^7.0",
4646
"twig/twig": "^2.14.7|^3.0.4"

src/Cropperjs/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
88
bootstrap="vendor/autoload.php"

src/Dropzone/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"require-dev": {
3939
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
40-
"symfony/phpunit-bridge": "^5.4|^6.0|^7.0",
40+
"phpunit/phpunit": "^10.5",
4141
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
4242
"symfony/var-dumper": "^5.4|^6.0|^7.0",
4343
"twig/twig": "^2.14.7|^3.0.4"

src/Dropzone/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
88
bootstrap="vendor/autoload.php"

0 commit comments

Comments
 (0)