Skip to content

CRE-4921: Allow PHPUnit 9.6 and PHP 8.x - #15

Merged
rubenbarbosa30 merged 1 commit into
masterfrom
CRE-4921_phpunit-9.6
Nov 9, 2026
Merged

rubenbarbosa30 merged 1 commit into
masterfrom
CRE-4921_phpunit-9.6

Conversation

@rubenbarbosa30

Copy link
Copy Markdown

https://jimplan.atlassian.net/browse/CRE-4921

Creator wants to move its test toolchain from PHPUnit 8.5 to 9.6, the version that runs on both PHP 7.4 and 8.x. This package pins phpunit/phpunit: 8.* and php: 7.3 - 8.0, which blocks that.

  • composer.json: php: ^7.3 || ^8.0, phpunit/phpunit: ^8.5 || ^9.6. No code changes: the library already runs on PHPUnit 9.6.
  • CI runs PHP 7.3 to 8.4 against PHPUnit 8.5 and 9.6 (composer update --with phpunit/phpunit:…).
  • composer.lock removed and ignored: it pinned PHPUnit 8.5.29 for the whole matrix, and consumers don't use a library's lock. This also makes Bump phpunit/phpunit from 8.5.29 to 8.5.52 #14 (Dependabot, 8.5.29 → 8.5.52) unnecessary.

Checked locally on PHP 7.4 and 8.4, each with PHPUnit 8.5.56 and 9.6.38: 40/40 tests pass. On 9.6, two tests of expectsCallAt() show PHPUnit's at() deprecation warning (exit code 0); at() is removed in PHPUnit 10.

After merge: tag 2.3.0. Creator keeps 2.2.0 until its PHPUnit upgrade.

The code already runs unchanged on PHPUnit 9.6, on PHP 7.4 and 8.4.
Widen the constraints so Creator can install this with PHPUnit 9.6 on
7.4 now and on 8.x later, while PHPUnit 8.5 keeps working.

CI runs every PHP version from 7.3 to 8.4 against both PHPUnit
majors. The lock is gone: it pinned one PHPUnit version for the whole
matrix, and a library's lock isn't used by its consumers anyway.

On PHPUnit 9.6, expectsCallAt() reports the at() deprecation as a
test warning; at() is removed in PHPUnit 10.
@rubenbarbosa30
rubenbarbosa30 marked this pull request as ready for review November 6, 2026 15:11
@rubenbarbosa30
rubenbarbosa30 merged commit fbdd941 into master Nov 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants