Skip to content

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

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

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

Conversation

@clue
Copy link
Copy Markdown
Owner

@clue clue commented Apr 11, 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 #60 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

This PR updates the development/test dependency constraints and CI invocation so the test suite can run on legacy PHP 7.2 by allowing PHPUnit 8.5, aligning with upstream environment changes referenced in clue/reactphp-redis#180.

Changes:

  • Allow installing PHPUnit 8.5 in require-dev (enables PHPUnit on PHP 7.2 where PHPUnit 9.x is not supported).
  • Simplify the CI workflow to use a single PHPUnit invocation, conditionally selecting the legacy PHPUnit config 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 ^8.5 to the PHPUnit version constraint to support running tests on PHP 7.2.
.github/workflows/ci.yml Consolidates PHPUnit run steps and conditionally appends -c phpunit.xml.legacy for PHP < 7.3.

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

@clue clue merged commit 7ad8a28 into clue:1.x Apr 11, 2026
19 checks passed
@clue clue deleted the phpunit8 branch April 11, 2026 10:10
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