Skip to content

Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5#120

Merged
clue merged 1 commit intoclue:1.xfrom
clue-labs:phpunit8
Apr 12, 2026
Merged

Update test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5#120
clue merged 1 commit intoclue:1.xfrom
clue-labs:phpunit8

Conversation

@clue
Copy link
Copy Markdown
Owner

@clue clue commented Apr 12, 2026

This changeset updates the test environment to fix tests on legacy PHP 7.2 with PHPUnit 8.5. This is needed to run the tests on legacy platforms due to recent upstream changes as discussed in clue/reactphp-redis#180.

Builds on top of clue/reactphp-redis#180 and #113 and others

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s dev/test tooling to ensure the test suite can run on legacy PHP 7.2 by allowing PHPUnit 8.5 and simplifying the CI PHPUnit invocation logic.

Changes:

  • Allow installing phpunit/phpunit 8.5 in require-dev (in addition to existing supported major versions).
  • Simplify CI workflow to run PHPUnit with the legacy config only when matrix.php < 7.3.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
composer.json Expands PHPUnit dev dependency constraints to include ^8.5 for legacy PHP compatibility.
.github/workflows/ci.yml Condenses conditional PHPUnit invocations into a single step with an expression-selected config file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@clue clue added this to the v1.5.0 milestone Apr 12, 2026
@clue clue merged commit d518c59 into clue:1.x Apr 12, 2026
18 checks passed
@clue clue deleted the phpunit8 branch April 12, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants