Skip to content

Commit dd91cd7

Browse files
committed
Use phpunit directly
1 parent c86da84 commit dd91cd7

File tree

5 files changed

+3
-33
lines changed

5 files changed

+3
-33
lines changed

.github/workflows/ci-docs.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
schedule:
99
- cron: '0 0 * * *'
1010

11-
env:
12-
PHPUNIT_FLAGS: "-v"
13-
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
14-
1511
jobs:
1612
doctor-rst:
1713
name: Lint (DOCtor-RST)

.github/workflows/ci-linux.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1313
cancel-in-progress: true
1414

15-
env:
16-
PHPUNIT_FLAGS: "-v"
17-
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
18-
1915
jobs:
2016
test:
2117
name: "PHP ${{ matrix.php-version }} + @${{ matrix.symfony-version }} ${{ matrix.dependency-versions }} deps"
@@ -82,12 +78,5 @@ jobs:
8278
with:
8379
composer-options: "--no-scripts --working-dir=tools/twigcs"
8480

85-
- name: Install PHPUnit
86-
run: |
87-
vendor/bin/simple-phpunit install
88-
89-
- name: PHPUnit version
90-
run: vendor/bin/simple-phpunit --version
91-
9281
- name: Run tests
93-
run: vendor/bin/simple-phpunit ${{ env.PHPUNIT_FLAGS }}
82+
run: vendor/bin/phpunit -v

.github/workflows/ci-static-analysis.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
schedule:
99
- cron: '0 0 * * *'
1010

11-
env:
12-
PHPUNIT_FLAGS: "-v"
13-
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
14-
1511
jobs:
1612
coding-standards:
1713
name: "Coding Standards"
@@ -78,8 +74,5 @@ jobs:
7874
with:
7975
composer-options: "--no-scripts --working-dir=tools/phpstan/includes"
8076

81-
- name: Install PHPUnit
82-
run: "vendor/bin/simple-phpunit --version"
83-
8477
- name: Run PHPStan
8578
run: "tools/phpstan/vendor/bin/phpstan analyze --memory-limit=1G --error-format=github"

.github/workflows/ci-windows.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
PHPUNIT_FLAGS: "-v"
17-
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
1816
MAKER_SKIP_MERCURE_TEST: 1
1917
MAKER_SKIP_PANTHER_TEST: 1
2018
MAKER_TEST_WINDOWS: 1
@@ -62,12 +60,5 @@ jobs:
6260
with:
6361
composer-options: "--no-scripts --working-dir=tools/twigcs"
6462

65-
- name: Install PHPUnit
66-
run: |
67-
vendor/bin/simple-phpunit install
68-
69-
- name: PHPUnit Version
70-
run: vendor/bin/simple-phpunit --version
71-
7263
- name: Run Tests
73-
run: vendor/bin/simple-phpunit ${{ env.PHPUNIT_FLAGS }}
64+
run: vendor/bin/phpunit -v

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"composer/semver": "^3.0",
3232
"doctrine/doctrine-bundle": "^2.5.0",
3333
"doctrine/orm": "^2.15|^3",
34+
"phpunit/phpunit": "^9.6.0",
3435
"symfony/http-client": "^6.4|^7.0",
3536
"symfony/phpunit-bridge": "^6.4.1|^7.0",
3637
"symfony/security-core": "^6.4|^7.0",

0 commit comments

Comments
 (0)