Skip to content

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

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#42
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 #40 and clue/reactphp-redis#180

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

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 development/test tooling configuration so the test suite can run on legacy PHP 7.2 by allowing PHPUnit 8.5 and using the legacy PHPUnit configuration when running on PHP < 7.3.

Changes:

  • Expand require-dev to allow installing phpunit/phpunit ^8.5 in addition to ^9.6 and ^6.5.
  • Simplify the GitHub Actions CI PHPUnit invocation into a single step that conditionally appends -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 Allows PHPUnit 8.5 to be installed on PHP 7.2 while keeping existing PHPUnit ranges for newer/older PHP versions.
.github/workflows/ci.yml Consolidates PHPUnit runs and conditionally selects the legacy PHPUnit config for PHP versions below 7.3.

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

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