All notable changes of the PHPUnit 10.1 release series are documented in this file using the Keep a CHANGELOG principles.
10.1.0 - 2023-04-07
- #5201: Add
TestCase::registerFailureType()
to register interface that marks exceptions to be treated as failures, not errors - #5237: Implement
IgnoreClassForCodeCoverage
,IgnoreMethodForCodeCoverage
, andIgnoreFunctionForCodeCoverage
attributes TestCase::createConfiguredStub()
was added as an analogon toTestCase::createConfiguredMock()
- #5236: Deprecate the
CodeCoverageIgnore
attribute - #5239: Deprecate
TestCase::createPartialMock()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) - #5240: Deprecate
TestCase::createTestProxy()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) - #5241: Deprecate
TestCase::getMockForAbstractClass()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) - #5242: Deprecate
TestCase::getMockFromWsdl()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) - #5243: Deprecate
TestCase::getMockForTrait()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) - #5244: Deprecate
TestCase::getObjectForTrait()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) - #5252: Deprecate
TestCase::getMockBuilder()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)