Skip to content

Commit 1a9e854

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

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
@@ -42,7 +42,4 @@ jobs:
4242
- run: composer install
4343
- run: sudo /etc/init.d/asterisk status || sudo /etc/init.d/asterisk start
4444
- run: sudo /etc/init.d/asterisk status || sleep 2
45-
- run: vendor/bin/phpunit --coverage-text
46-
if: ${{ matrix.php >= 7.3 }}
47-
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
48-
if: ${{ matrix.php < 7.3 }}
45+
- 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
@@ -18,7 +18,7 @@
1818
"react/socket": "^1.17"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
21+
"phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36",
2222
"react/async": "^4.3 || ^3.2 || ^2.2"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)