All notable changes of the PHPUnit 12.2 release series are documented in this file using the Keep a CHANGELOG principles.
12.2.0 - 2025-06-06
- The new
Test\AfterLastTestMethodFailed
,Test\AfterTestMethodFailed
,Test\BeforeFirstTestMethodFailed
,Test\BeforeTestMethodFailed
,Test\PostConditionFailed
,Test\PreConditionFailed
events are now emitted instead ofTest\AfterLastTestMethodErrored
,Test\AfterTestMethodErrored
,Test\BeforeFirstTestMethodErrored
,Test\BeforeTestMethodErrored
,Test\PostConditionErrored
,Test\PreConditionErrored
when theThrowable
extendsAssertionFailedError
to distinguish between errors and failures triggered in hook methods --with-telemetry
CLI option that can be used together with--debug
to print debugging information that includes telemetry information