From 42e170b07676729c011b3bc79d503a8e974fb4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sun, 15 Feb 2026 01:54:36 +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 0ed7035..75d032e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,7 @@ jobs: ini-file: development - run: composer install - run: docker run --net=host -d redis - - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - if: ${{ matrix.php >= 7.3 }} - - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy - if: ${{ matrix.php < 7.3 }} + - run: REDIS_URI=localhost:6379 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 967f59b..d35b357 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ }, "require-dev": { "phpstan/phpstan": "1.12.32 || 1.4.10", - "phpunit/phpunit": "^9.6 || ^7.5", + "phpunit/phpunit": "^9.6 || ^8.5 || ^7.5", "react/async": "^4.3 || ^3.2" }, "autoload": {