Skip to content

Commit a2d2b49

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent 6915d97 commit a2d2b49

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
@@ -35,10 +35,7 @@ jobs:
3535
ini-file: development
3636
- run: composer install
3737
- run: docker pull busybox:latest
38-
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
39-
if: ${{ matrix.php >= 7.3 }}
40-
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
41-
if: ${{ matrix.php < 7.3 }}
38+
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }}
4239
- name: Check 100% code coverage
4340
shell: php {0}
4441
run: |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"require-dev": {
2525
"clue/caret-notation": "^0.2",
2626
"clue/tar-react": "^0.2",
27-
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
27+
"phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36",
2828
"react/async": "^4.3 || ^3 || ^2"
2929
},
3030
"autoload": {

0 commit comments

Comments
 (0)