From fbe92e209a86bf227f0f4dcacc0f56eec5c65617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Thu, 4 Jun 2026 19:43:03 +0200 Subject: [PATCH] Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5 --- .github/workflows/ci.yml | 5 +---- composer.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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": {