Skip to content

Commit 32c7ee8

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent f222213 commit 32c7ee8

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.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 --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
@@ -20,7 +20,7 @@
2020
"require-dev": {
2121
"clue/arguments": "^2.0",
2222
"clue/commander": "^1.2",
23-
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
23+
"phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36"
2424
},
2525
"suggest": {
2626
"ext-mbstring": "Using ext-mbstring should provide slightly better performance for handling I/O"

0 commit comments

Comments
 (0)