From 0075020c2e0fc5f05d1a2929f68aa5f0338d31a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sat, 11 Apr 2026 12:45:08 +0200 Subject: [PATCH] Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5 --- .github/workflows/ci.yml | 7 ++----- composer.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b09c4b..640fed2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - 8.0 - 7.4 - 7.3 - # - 7.2 # skip temporarily due to version conflicts + - 7.2 - 7.1 - 7.0 - 5.6 @@ -32,10 +32,7 @@ jobs: - run: composer remove react/mysql --dev --no-interaction # do not install react/mysql example on legacy PHP if: ${{ matrix.php == 5.3 }} - 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' || '' }} PHPUnit-hhvm: name: PHPUnit (HHVM) diff --git a/composer.json b/composer.json index 8a2a994..62c0ac4 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "react/stream": "^1.2" }, "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/http": "^1.5", "react/mysql": "^0.5.5",