Skip to content

Commit a6ecdca

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent 3902f50 commit a6ecdca

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
coverage: xdebug
3333
ini-file: development
3434
- run: composer install
35-
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
36-
if: ${{ matrix.php >= 7.3 }}
37-
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
38-
if: ${{ matrix.php < 7.3 }}
35+
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }}
3936
- name: Check 100% code coverage
4037
shell: php {0}
4138
run: |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react/promise": "^3.2 || ^2.10 || ^1.2.1"
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)