Update PHPUnit documentation for CakePHP 5.x requirements#8186
Merged
Conversation
CakePHP 5.x now requires PHPUnit ^11.5.3 || ^12.1.3, making the previous PHPUnit 10 documentation outdated. This updates the guide to cover: - Current version requirements (PHPUnit 11.5+ or 12.1+) - Migration from annotations to PHP 8 attributes - Data provider static requirements - Test double changes (createStub vs createMock) - PHPUnit 12 specific breaking changes - Comprehensive upgrade checklist Fixes #8172
dereuromark
added a commit
that referenced
this pull request
Jan 28, 2026
Remove phpunit10.md in favor of renamed phpunit-upgrade.md which incorporates the useful content from #8186.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
^11.5.3 || ^12.1.3)createStubvscreateMock)Context
CakePHP 5.x now requires PHPUnit 11.5.3+ or 12.1.3+, but the documentation still referenced PHPUnit 10 as the minimum version. This update brings the appendix in line with current requirements and provides guidance for users upgrading from PHPUnit 10 through 11 to 12.
Key Changes
Fixes #8172
Sources