Skip to content

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

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

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

Conversation

@clue
Copy link
Copy Markdown
Owner

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

@clue clue added this to the v1.7.0 milestone Jun 4, 2026
@clue clue requested a review from Copilot June 4, 2026 19:58
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 pull request updates the project’s testing setup to ensure the test suite can run on legacy PHP 7.2 by allowing installation of PHPUnit 8.5, while also simplifying the CI workflow’s PHPUnit invocation across PHP versions.

Changes:

  • Expand require-dev PHPUnit constraints to include ^8.5 so PHP 7.2 can resolve a compatible PHPUnit version.
  • Simplify the GitHub Actions CI workflow by collapsing the PHP-version conditional PHPUnit run steps into a single command with an inline conditional config flag.

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 to support running tests on PHP 7.2 while preserving compatibility across the existing PHP version range.
.github/workflows/ci.yml Replaces two conditional PHPUnit steps with one step that conditionally applies -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 93f8fb4 into clue:1.x Jun 4, 2026
28 checks passed
@clue clue deleted the phpunit8 branch June 4, 2026 20:03
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