Skip to content

Commit 2fad954

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent e6d1219 commit 2fad954

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ jobs:
3232
php-version: ${{ matrix.php }}
3333
coverage: xdebug
3434
- run: composer install
35-
- run: vendor/bin/phpunit --coverage-text
36-
if: ${{ matrix.php >= 7.3 }}
37-
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
38-
if: ${{ matrix.php < 7.3 }}
35+
- run: vendor/bin/phpunit --coverage-text ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }}
3936

4037
PHPUnit-hhvm:
4138
name: PHPUnit (HHVM)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react/socket": "^1.16"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
21+
"phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36"
2222
},
2323
"autoload": {
2424
"psr-4": {

0 commit comments

Comments
 (0)