Skip to content

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

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

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

Conversation

@clue

@clue clue commented Jun 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 #50 and clue/reactphp-redis#180

@clue clue added this to the v1.8.0 milestone Jun 21, 2026
@clue clue requested a review from Copilot June 21, 2026 18:33

Copilot AI 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 testing setup to ensure the test suite can run on legacy PHP 7.2 by allowing PHPUnit 8.5, while keeping compatibility with the existing supported PHP/PHPUnit combinations in CI.

Changes:

  • Expand require-dev PHPUnit constraints to include ^8.5 (enabling PHPUnit 8.5 on PHP 7.2).
  • Simplify the CI PHPUnit invocation by using a single command that conditionally applies the legacy config for PHP versions below 7.3.

Reviewed changes

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

File Description
composer.json Allows PHPUnit 8.5 in dev dependencies to support running tests on PHP 7.2.
.github/workflows/ci.yml Consolidates PHPUnit execution into one step with an inline conditional config selection for legacy PHP versions.

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

@clue clue merged commit 7fb3231 into clue:1.x Jun 21, 2026
14 checks passed
@clue clue deleted the phpunit8 branch June 21, 2026 18:37
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