Skip to content

Commit 42e170b

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent 6a26aff commit 42e170b

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
@@ -30,10 +30,7 @@ jobs:
3030
ini-file: development
3131
- run: composer install
3232
- run: docker run --net=host -d redis
33-
- run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
34-
if: ${{ matrix.php >= 7.3 }}
35-
- run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
36-
if: ${{ matrix.php < 7.3 }}
33+
- run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }}
3734
- name: Check 100% code coverage
3835
shell: php {0}
3936
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
"react/async": "^4.3 || ^3.2"
2525
},
2626
"autoload": {

0 commit comments

Comments
 (0)