Skip to content

Commit c0a1f36

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent f439204 commit c0a1f36

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
coverage: ${{ matrix.php < 8.0 && 'xdebug' || 'pcov' }}
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
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"phpstan/phpstan": "1.12.32 || 1.4.10",
23-
"phpunit/phpunit": "^9.6 || ^7.5",
23+
"phpunit/phpunit": "^9.6 || ^8.5 || ^7.5",
2424
"psr/container": "^2 || ^1"
2525
},
2626
"autoload": {

0 commit comments

Comments
 (0)