Skip to content

Commit 95c1cc0

Browse files
committed
Remove PhpunitBridge and install PHPunit 11
1 parent 699ae49 commit 95c1cc0

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

.github/workflows/lint.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ jobs:
5858
- name: "Install dependencies"
5959
run: composer install --ansi --no-interaction --no-progress
6060

61-
- name: Install PHPUnit
62-
id: install
63-
run: vendor/bin/simple-phpunit install
64-
6561
- name: Lint YAML files
6662
if: always() && steps.install.outcome == 'success'
6763
run: ./bin/console lint:yaml config --parse-tags

.github/workflows/tests.yaml

+1-10
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88

99
env:
1010
fail-fast: true
11-
PHPUNIT_FLAGS: "-v"
12-
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
13-
SYMFONY_DEPRECATIONS_HELPER: 'max[indirect]=52'
1411

1512
permissions:
1613
contents: read
@@ -68,11 +65,5 @@ jobs:
6865
php bin/console sass:build
6966
php bin/console asset-map:compile
7067
71-
- name: "Install PHPUnit"
72-
run: vendor/bin/simple-phpunit install
73-
74-
- name: "PHPUnit version"
75-
run: vendor/bin/simple-phpunit --version
76-
7768
- name: "Run tests"
78-
run: vendor/bin/simple-phpunit ${{ env.PHPUNIT_FLAGS }}
69+
run: bin/phpunit

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@
2626
###> phpstan/phpstan ###
2727
phpstan.neon
2828
###< phpstan/phpstan ###
29+
30+
###> phpunit/phpunit ###
31+
/phpunit.xml
32+
.phpunit.result.cache
33+
###< phpunit/phpunit ###

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
"phpstan/phpstan": "^1.2",
5959
"phpstan/phpstan-doctrine": "^1.3",
6060
"phpstan/phpstan-symfony": "^1.2",
61+
"phpunit/phpunit": "^11.3",
6162
"symfony/browser-kit": "^7",
6263
"symfony/css-selector": "^7",
6364
"symfony/debug-bundle": "^7",
6465
"symfony/maker-bundle": "^1.36",
65-
"symfony/phpunit-bridge": "^7",
6666
"symfony/stopwatch": "^7",
6767
"symfony/web-profiler-bundle": "^7",
6868
"twbs/bootstrap": "^5"

phpstan.neon.dist

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ parameters:
66
paths:
77
- src
88
- tests
9-
bootstrapFiles:
10-
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
119
doctrine:
1210
objectManagerLoader: tests/object-manager.php
1311
symfony:

symfony.lock

+14
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@
6262
"phpstan.dist.neon"
6363
]
6464
},
65+
"phpunit/phpunit": {
66+
"version": "11.5",
67+
"recipe": {
68+
"repo": "github.com/symfony/recipes",
69+
"branch": "main",
70+
"version": "9.6",
71+
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
72+
},
73+
"files": [
74+
".env.test",
75+
"phpunit.xml.dist",
76+
"tests/bootstrap.php"
77+
]
78+
},
6579
"symfony/apache-pack": {
6680
"version": "1.0",
6781
"recipe": {

0 commit comments

Comments
 (0)