Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 2.79 KB

ChangeLog-10.1.md

File metadata and controls

24 lines (17 loc) · 2.79 KB

Changes in PHPUnit 10.1

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

Added

  • #5201: Add TestCase::registerFailureType() to register interface that marks exceptions to be treated as failures, not errors
  • #5237: Implement IgnoreClassForCodeCoverage, IgnoreMethodForCodeCoverage, and IgnoreFunctionForCodeCoverage attributes
  • TestCase::createConfiguredStub() was added as an analogon to TestCase::createConfiguredMock()

Changed

  • #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)