Skip to content

Commit 6a367d0

Browse files
Kocalondrejmirtes
authored andcommitted
chore: Use the latest PHPUnit wherever possible
Related to phpstan/phpstan-mockery#30 (comment)
1 parent 46feb53 commit 6a367d0

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/build.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ jobs:
3838
- name: "Install dependencies"
3939
run: "composer install --no-interaction --no-progress --no-suggest"
4040

41-
- name: "Update PHPUnit"
42-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
43-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
44-
41+
- name: "Downgrade PHPUnit"
42+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
43+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
4544

4645
- name: "Lint"
4746
run: "make lint"
@@ -111,9 +110,9 @@ jobs:
111110
if: ${{ matrix.dependencies == 'highest' }}
112111
run: "composer update --no-interaction --no-progress --no-suggest"
113112

114-
- name: "Update PHPUnit"
115-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
116-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
113+
- name: "Downgrade PHPUnit"
114+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
115+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
117116

118117
- name: "Tests"
119118
run: "make tests"
@@ -155,9 +154,9 @@ jobs:
155154
if: ${{ matrix.dependencies == 'highest' }}
156155
run: "composer update --no-interaction --no-progress --no-suggest"
157156

158-
- name: "Update PHPUnit"
159-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
160-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
157+
- name: "Downgrade PHPUnit"
158+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
159+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
161160

162161
- name: "PHPStan"
163162
run: "make phpstan"

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php-parallel-lint/php-parallel-lint": "^1.2",
2525
"phpstan/phpstan-phpunit": "^0.12.16",
2626
"phpstan/phpstan-strict-rules": "^0.12.5",
27-
"phpunit/phpunit": "^7.5.20",
27+
"phpunit/phpunit": "^9.5",
2828
"symfony/config": "^4.2 || ^5.0",
2929
"symfony/console": "^4.0 || ^5.0",
3030
"symfony/framework-bundle": "^4.4 || ^5.0",

0 commit comments

Comments
 (0)