Skip to content

Commit e6135c4

Browse files
authored
Merge pull request #26 from clue-labs/phpunit8
Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5
2 parents f1bd5df + 18a7622 commit e6135c4

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
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' || '' }}
3936

4037
PHPUnit-hhvm:
4138
name: PHPUnit (HHVM)

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"require-dev": {
1919
"clue/hexdump": "0.2.*",
20-
"phpunit/phpunit": "^9.6 ||^6.0 || ^5.7 || ^4.8.36"
20+
"phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36"
2121
},
2222
"suggest": {
2323
"ext-sockets": "Requires PHP 5.4+ and the low level socket API for listening on multicast addresses (socket options to send IGMP announcements)"

0 commit comments

Comments
 (0)