Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 8.03 KB

ChangeLog-11.0.md

File metadata and controls

59 lines (50 loc) · 8.03 KB

Changes in PHPUnit 11.0

All notable changes of the PHPUnit 11.0 release series are documented in this file using the Keep a CHANGELOG principles.

11.0.0 - 2024-02-02

Changed

  • #5213: Make TestCase methods protected that should have been protected all along
  • #5254: Make TestCase methods final that should have been final all along

Deprecated

  • #4505: Support for metadata in doc-comments
  • #5214: TestCase::iniSet() (this method was already soft-deprecated in PHPUnit 10)
  • #5216: TestCase::setLocale() (this method was already soft-deprecated in PHPUnit 10)
  • #5240: TestCase::createTestProxy() (this method was already soft-deprecated in PHPUnit 10)
  • #5241: TestCase::getMockForAbstractClass() (this method was already soft-deprecated in PHPUnit 10)
  • #5242: TestCase::getMockFromWsdl() (this method was already soft-deprecated in PHPUnit 10)
  • #5243: TestCase::getMockForTrait() (this method was already soft-deprecated in PHPUnit 10)
  • #5244: TestCase::getObjectForTrait() (this method was already soft-deprecated in PHPUnit 10)
  • #5305: MockBuilder::getMockForAbstractClass() (this method was already soft-deprecated in PHPUnit 10)
  • #5306: MockBuilder::getMockForTrait() (this method was already soft-deprecated in PHPUnit 10)
  • #5307: MockBuilder::enableProxyingToOriginalMethods(), MockBuilder::disableProxyingToOriginalMethods(), and MockBuilder::setProxyTarget() (these methods were already soft-deprecated in PHPUnit 10)
  • #5308: MockBuilder::allowMockingUnknownTypes() and MockBuilder::disallowMockingUnknownTypes() (these methods were already soft-deprecated in PHPUnit 10)
  • #5309: MockBuilder::enableAutoload() and MockBuilder::disableAutoload() (these methods were already soft-deprecated in PHPUnit 10)
  • #5315: MockBuilder::enableArgumentCloning() and MockBuilder::disableArgumentCloning() (these methods were already soft-deprecated in PHPUnit 10)
  • #5320: MockBuilder::addMethods() (this method was already soft-deprecated in PHPUnit 10)
  • #5415: Support for doubling interfaces (or classes) that have a method named method
  • #5423: TestCase::returnValue(), TestCase::onConsecutiveCalls(), TestCase::returnValueMap(), TestCase::returnArgument(), TestCase::returnSelf(), and TestCase::returnCallback() (these methods were already soft-deprecated in PHPUnit 10)
  • #5472: assertStringNotMatchesFormat() and assertStringNotMatchesFormatFile() (these methods were already soft-deprecated in PHPUnit 10)
  • #5535: Configuring expectations using expects() on test stubs

Removed

  • #4600: Support for old cache configuration
  • #4604: Support for backupStaticAttributes attribute in XML configuration file
  • #4779: Support for forceCoversAnnotation and beStrictAboutCoversAnnotation attributes in XML configuration file
  • #5100: Support for non-static data provider methods, non-public data provider methods, and data provider methods that declare parameters
  • #5101: Support for PHP 8.1
  • #5272: Optional parameters of PHPUnit\Framework\Constraint\IsEqual::__construct()
  • #5329: Support for configuring include/exclude list for code coverage using the <coverage> element
  • #5482: dataSet attribute for testCaseMethod elements in the XML document generated by --list-tests-xml
  • #5514 IgnoreClassForCodeCoverage, IgnoreMethodForCodeCoverage, and IgnoreFunctionForCodeCoverage attributes
  • CodeCoverageIgnore attribute
  • PHPUnit\TextUI\Configuration\Configuration::coverageExcludeDirectories() (use PHPUnit\TextUI\Configuration\Configuration::source()->excludeDirectories() instead)
  • PHPUnit\TextUI\Configuration\Configuration::coverageExcludeFiles() (use PHPUnit\TextUI\Configuration\Configuration::source()->excludeFiles() instead)
  • PHPUnit\TextUI\Configuration\Configuration::coverageIncludeDirectories() (use PHPUnit\TextUI\Configuration\Configuration::source()->includeDirectories() instead)
  • PHPUnit\TextUI\Configuration\Configuration::coverageIncludeFiles() (use PHPUnit\TextUI\Configuration\Configuration::source()->includeFiles() instead)
  • PHPUnit\TextUI\Configuration\Configuration::loadPharExtensions() (use PHPUnit\TextUI\Configuration\Configuration::noExtensions() instead)
  • PHPUnit\TextUI\Configuration\Configuration::hasNonEmptyListOfFilesToBeIncludedInCodeCoverageReport() (use PHPUnit\TextUI\Configuration\Configuration::source()->notEmpty() instead)
  • PHPUnit\TextUI\Configuration\Configuration::restrictDeprecations() (use PHPUnit\TextUI\Configuration\Configuration::source()->restrictDeprecations() instead)
  • PHPUnit\TextUI\Configuration\Configuration::restrictNotices() (use PHPUnit\TextUI\Configuration\Configuration::source()->restrictNotices() instead)
  • PHPUnit\TextUI\Configuration\Configuration::restrictWarnings() (use PHPUnit\TextUI\Configuration\Configuration::source()->restrictWarnings() instead)
  • PHPUnit\TextUI\Configuration\Configuration::cliArgument() (use PHPUnit\TextUI\Configuration\Configuration::cliArguments()[0] instead)
  • PHPUnit\TextUI\Configuration\Configuration::hasCliArgument() (use PHPUnit\TextUI\Configuration\Configuration::hasCliArguments() instead)
  • PHPUnit\Framework\Constraint\Constraint::exporter()