Skip to content

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

Merged
clue merged 1 commit into
clue:masterfrom
clue-labs:phpunit8
Oct 25, 2026
Merged

clue merged 1 commit into
clue:masterfrom
clue-labs:phpunit8

Conversation

@clue

@clue clue commented Oct 25, 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 #16, #12 and clue/reactphp-redis#180

@clue clue added this to the v0.1.0 milestone Oct 25, 2026
@clue
clue requested a balanced review from Copilot October 25, 2026 13:14

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.

🟢 Approval recommended

The narrow test-environment changes consistently support PHPUnit 8.5 on PHP 7.2, with no unresolved issues identified.

No open issues 🎉

What changed in this PR

Updates the test environment to support PHPUnit 8.5 on legacy PHP 7.2 while preserving existing CI configuration selection.

Changes:

  • Allows PHPUnit 8.5 as a development dependency.
  • Consolidates the CI test command while retaining the legacy configuration for PHP below 7.3.
  • Corrects PHPUnit version ranges in test-helper comments; runtime behavior is unchanged.
File Description
tests/​TestCase.php Corrects comments describing mock-builder compatibility.
composer.json Adds ^8.5 to the allowed PHPUnit versions.
.github/​workflows/​ci.yml Combines PHPUnit steps with conditional legacy configuration selection.

Review effort: Balanced

@clue
clue merged commit cf02aeb into clue:master Oct 25, 2026
14 checks passed
@clue
clue deleted the phpunit8 branch October 25, 2026 13:17
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