From a2d2b49cbd45d3fbc0a1ebd771aa96cbda9c81bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sat, 21 Feb 2026 21:12:26 +0100 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 8860e11..f3ac895 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,7 @@ jobs: ini-file: development - run: composer install - run: docker pull busybox:latest - - 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 202b1d9..f8b5124 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "require-dev": { "clue/caret-notation": "^0.2", "clue/tar-react": "^0.2", - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", + "phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36", "react/async": "^4.3 || ^3 || ^2" }, "autoload": {