Skip to content

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

Merged
clue merged 1 commit intoclue:1.xfrom
clue-labs:phpunit8
Feb 28, 2026
Merged

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

Conversation

@clue
Copy link
Owner

@clue clue commented Feb 28, 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 #18 and others

Copy link

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

This PR updates the development test tooling so the test suite can run on legacy PHP 7.2 by allowing installation of PHPUnit 8.5 and simplifying the CI workflow to select the legacy PHPUnit config when needed.

Changes:

  • Extend require-dev PHPUnit constraints to include ^8.5 for PHP 7.2 compatibility.
  • Consolidate the CI PHPUnit invocation into a single step that conditionally adds -c phpunit.xml.legacy for 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 Adds PHPUnit 8.5 as an allowed dev dependency version to support PHP 7.2.
.github/workflows/ci.yml Simplifies PHPUnit execution into one command while preserving legacy config selection for older PHP versions.

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

@clue clue merged commit f8844f3 into clue:1.x Feb 28, 2026
17 checks passed
@clue clue deleted the phpunit8 branch February 28, 2026 21:09
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