Reviewed & tested by the community
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Oct 2026 at 08:12 UTC
Updated:
9 Oct 2026 at 14:17 UTC
Jump to comment: Most recent
Comments
Comment #2
wkr1shna commentedHey! i would love to give this a shot, Assigning this to myself!!
Comment #4
wkr1shna commentedTHe failed php builds seems out of scope and not related to my changes, Marking this for review!!
Comment #5
mondrakeThank you @wkr1shna!
Sorry, I had already work done for this on #3574681: [Nov 2026] Introduce support for PHPUnit 13.5, so it's easier for me to dump it here rather then review your input. Let's restart from here.
If you are interested on getting PHPUnit 13 in Drupal, there's plenty of work to do! You can look at open issues tagged 'PHPUnit 13', or at the current failures of #3574681: [Nov 2026] Introduce support for PHPUnit 13.5 and open issues for the things that are failing.
Comment #6
wkr1shna commentedThank you for the guidance! No worries at all. I’m definitely interested in contributing further to the PHPUnit 13 effort. I’ll go through the open issues and current failures to find something I can work on.
Comment #7
dcam commentedAll of the code changes look correct. Observant reviewers may notice that there are a few instances where
expectExceptionMessageIs()is already in use and the expected message is being changed. That's because those messages are incorrect. You have to test with PHPUnit 13.2+ to get those failures. The easiest way to do that is to install the MR from #3574681: [Nov 2026] Introduce support for PHPUnit 13.5, revert the changes to those tests, then run the tests. You'll get failures noting that the exception messages are incorrect.I also grepped Core for any remaining instances of
expectExceptionMessage(). The only two left are inForwardCompatibilityTrait.This looks good to me.