Skip to content

Commit 002db49

Browse files
authored
Merge pull request #519 from stof/phpunit_install
Install phpunit as a dev dependency instead of using simple-phpunit
2 parents d8596ba + 79ac4f7 commit 002db49

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
2929
- name: Install dependencies
3030
run: composer update --ansi --no-progress --prefer-dist --no-interaction
3131

32-
- name: Install PHPUnit
33-
run: vendor/bin/simple-phpunit install
34-
3532
- run: vendor/bin/phpstan analyze
3633

3734
tests:
@@ -70,8 +67,5 @@ jobs:
7067
- name: Install dependencies
7168
run: composer update --ansi --no-progress --prefer-dist ${{ matrix.composer_flags }}
7269

73-
- name: Install PHPUnit
74-
run: vendor/bin/simple-phpunit install
75-
7670
- name: Run tests
77-
run: vendor/bin/simple-phpunit -v --colors=always
71+
run: vendor/bin/phpunit -v --colors=always

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"phpstan/phpstan-phpunit": "^2.0",
2828
"phpstan/phpstan-strict-rules": "^2.0",
2929
"phpstan/phpstan-symfony": "^2.0",
30+
"phpunit/phpunit": "^9.6.31",
3031
"symfony/mime": "^6.4 || ^7.0 || ^8.0",
3132
"symfony/phpunit-bridge": "^v6.4.1 || ^7.0.1 || ^8.0",
3233
"symfony/security-core": "^6.4 || ^7.0 || ^8.0"

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
</exclude>
1717
</whitelist>
1818
</filter>
19+
20+
<listeners>
21+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
22+
</listeners>
1923
</phpunit>

0 commit comments

Comments
 (0)