Skip to content

Commit ce43cb1

Browse files
committed
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
1 parent 49f6811 commit ce43cb1

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,7 +32,4 @@ jobs:
3232
extensions: zlib
3333
coverage: xdebug
3434
- run: composer install
35-
- run: vendor/bin/phpunit --coverage-text
36-
if: ${{ matrix.php >= 7.3 }}
37-
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
38-
if: ${{ matrix.php < 7.3 }}
35+
- run: vendor/bin/phpunit --coverage-text ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react/stream": "^1.2"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^9.6 || ^6.5",
19+
"phpunit/phpunit": "^9.6 || ^8.5 || ^6.5",
2020
"react/event-loop": "^1.2"
2121
},
2222
"autoload": {

0 commit comments

Comments
 (0)