Skip to content

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

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

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

Conversation

@clue

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

@clue clue added this to the v1.8.0 milestone Jun 28, 2026
@clue
clue requested a review from Copilot June 28, 2026 22: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 test tooling so CI can run successfully on legacy PHP 7.2 by allowing PHPUnit 8.5, while keeping existing PHPUnit selections for other PHP versions. It also simplifies the CI workflow by consolidating the PHPUnit invocation into a single step with a conditional config flag.

Changes:

  • Extend require-dev to allow installing phpunit/phpunit ^8.5 (enabling PHPUnit on PHP 7.2).
  • Simplify the CI workflow to run PHPUnit once and conditionally append -c phpunit.xml.legacy for PHP versions < 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 to the allowed dev dependency range to support PHP 7.2.
.github/workflows/ci.yml Collapses the split PHPUnit steps into a single command with a conditional legacy config argument.

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

@clue
clue merged commit ea1c31b into clue:1.x Jun 28, 2026
16 checks passed
@clue
clue deleted the phpunit8 branch June 28, 2026 22:45
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