All notable changes of the PHPUnit 12.1 release series are documented in this file using the Keep a CHANGELOG principles.
12.1.0 - 2025-04-04
- The
AfterTestMethodCalled
,AfterTestMethodErrored
,AfterTestMethodFinished
,BeforeTestMethodCalled
,BeforeTestMethodErrored
,BeforeTestMethodFinished
,PostConditionCalled
,PostConditionErrored
,PostConditionFinished
,PreConditionCalled
,PreConditionErrored
, andPreConditionFinished
event value objects now havetest()
method that returns a value object representing the test method for which the hook method was called
- #6140: The
testClassName()
method on theAfterTestMethodCalled
,AfterTestMethodErrored
,AfterTestMethodFinished
,BeforeTestMethodCalled
,BeforeTestMethodErrored
,BeforeTestMethodFinished
,PostConditionCalled
,PostConditionErrored
,PostConditionFinished
,PreConditionCalled
,PreConditionErrored
, andPreConditionFinished
event value objects (usetest()->className()
instead)