Skip to content

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

Merged
clue merged 1 commit into
clue:1.xfrom
clue-labs:phpunit8
Feb 21, 2026
Merged

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

Conversation

@clue

@clueclue commented Feb 21, 2026

Copy link
Copy Markdown
Owner

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 #18 and others

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the project’s test tooling so the test suite can run on legacy PHP 7.2 by allowing installation of PHPUnit 8.5 and simplifying CI’s PHPUnit config selection logic.

Changes:

  • Expand require-dev to allow phpunit/phpunit:^8.5 for PHP 7.2 compatibility.
  • Simplify the GitHub Actions PHPUnit invocation to conditionally use phpunit.xml.legacy for PHP < 7.3 in a single step.

Reviewed changes

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

FileDescription
composer.jsonAllows PHPUnit 8.5 so tests can run on PHP 7.2 while keeping newer PHPUnit on newer PHP versions via Composer platform resolution.
.github/workflows/ci.ymlConsolidates PHPUnit execution into one command with a conditional legacy config switch for older PHP versions.

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

@clue
clue merged commit d9cefea into clue:1.xFeb 21, 2026
18 checks passed
@clue
clue deleted the phpunit8 branch February 21, 2026 19:39
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@clue