Roadmap v5 / PHPUnit 13
@jrfnl is already working on this.
Since Sep 28, 2026.
Assessment
This issue has not been assessed yet.
Description
PHPUnit 13 was released on February 6, 2026.
As this is a major release with breaking changes, upgrading should be a done deliberately and managed.
This effectively means that upgrading to a PHPUnit Polyfills version which supports PHPUnit 13 should also be done deliberately and managed, so the Polyfills should get a new major release.
The intention is for the 1.x, 2.x, 3.x and 4.x series to continue to be maintained, for as long as PHPUnit continues to make PHPUnit 9.x/10.x/11.x compatible with new PHP versions.
Refs:
- https://phpunit.de/announcements/phpunit-13.html
- https://github.com/sebastianbergmann/phpunit/blob/13.0.6/ChangeLog-13.0.md
Proposed Roadmap for PHPUnit Polyfills 5.0 / PHPUnit 13.0 support
- Add a
5.xbranch.- Add branch protection rules for the 5.x branch
- Change "default" branch to be the 5.x branch
- Drop support for PHP < 7.2.
- Drop support for PHPUnit < 8.5.
- Drop the
ExpectExceptionMessageMatchespolyfill. - Drop the
AssertFileEqualsSpecializationspolyfill. - Change
TestCasehandling.
- Drop the
- Add
strict_typesdeclarations wherever possible (in line with this also having been done in PHPUnit 8.0.0). - Add more parameter type declarations wherever possible (in line with this also having been done in PHPUnit 8.0.0).
- Add a new polyfill for the new
assertArraysAreIdentical(),assertArraysAreIdenticalIgnoringOrder(),assertArraysHaveIdenticalValues(),assertArraysHaveIdenticalValuesIgnoringOrder(),assertArraysAreEqual(),assertArraysAreEqualIgnoringOrder(),assertArraysHaveEqualValues(), andassertArraysHaveEqualValuesIgnoringOrder()assertions methods. See https://github.com/sebastianbergmann/phpunit/pull/6477 - Add a new polyfill for the new PHPUnit 13.2+
assertStringEqualsStringIgnoringWhitespace(),assertStringEqualsFileIgnoringWhitespace()andassertFileEqualsFileIgnoringWhitespace()assertions. See https://github.com/sebastianbergmann/phpunit/issues/5757 + https://github.com/sebastianbergmann/phpunit/commit/14448ef32fb4481fcde6812c374cd6501050d868 - Add a new polyfill for the new PHPUnit 13.2+
expectExceptionMessageIs()andexpectExceptionMessageIsOrContains()expectations. See https://github.com/sebastianbergmann/phpunit/issues/6559 + https://github.com/sebastianbergmann/phpunit/commit/8987840edcc076e9c6547c38b73482609910abaf
Also see https://github.com/sebastianbergmann/phpunit/issues/6560 - Evaluate if there is anything else that needs polyfilling.
- Verify the documentation is in line with the changes.
- Update
mainbranch alias.
- Update
- Allow PHPUnit 13.x.
Request for comments
This roadmap is open for comments.
- Dominant language
- PHP
- Stars
- 189
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Yoast/PHPUnit-Polyfills
-
Type: chores/QA Type: documentation
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Yoast/PHPUnit-Polyfills#215 · 1 reaction ·
-
Type: question
Difficulty 5/5 Over a week Newbie friendliness 25/100
Yoast/PHPUnit-Polyfills#134 · 6 comments ·
-
Feature: testlistener Type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
Yoast/PHPUnit-Polyfills#128 ·
-
Type: enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Yoast/PHPUnit-Polyfills#58 · 1 comment ·
All issues in Yoast/PHPUnit-Polyfills
Similar issues
-
repo:ckeditor
Difficulty 1/5 Under an hour Newbie friendliness 78/100
craftcms/ckeditor#682 · 1 comment ·
Maintainers usually reply within 1 day
-
component/core domain/framework
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day