diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 404599f..c28e433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,4 @@ jobs: - run: composer config secure-http false && composer config repo.packagist composer http://packagist.org && composer config preferred-install source if: ${{ matrix.php < 5.5 && matrix.os == 'windows-2022' }} # legacy PHP on Windows is allowed to use insecure downloads until it will be removed again - run: composer install - - run: vendor/bin/phpunit --coverage-text - if: ${{ matrix.php >= 7.3 }} - - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy - if: ${{ matrix.php < 7.3 }} + - run: vendor/bin/phpunit --coverage-text ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }} diff --git a/composer.json b/composer.json index 3130295..6860ddb 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "ext-sockets": "*" }, "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" + "phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36" }, "autoload": { "psr-4": {