diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a63be8e..a76fae4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,10 +33,7 @@ jobs: coverage: xdebug ini-file: development - run: composer install - - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - if: ${{ matrix.php >= 7.3 }} - - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy - if: ${{ matrix.php < 7.3 }} + - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }} - name: Check 100% code coverage shell: php {0} run: | diff --git a/composer.json b/composer.json index 8a83e34..d50f551 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "react/promise": "^3 || ^2.2.1 || ^1.2.1" }, "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", + "phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36", "react/async": "^4 || ^3 || ^2", "react/event-loop": "^1.2", "react/http": "^1.8"