All notable changes of the PHPUnit 9.0 release series are documented in this file using the Keep a CHANGELOG principles.
9.0.0 - 2020-02-07
- Implemented #3797: Add support for multiple
--whitelistoptions
- Implemented #3630: Deprecate support for
ClassName<*>as values for@coversand@usesannotations (this deprecation is not implemented in code, you will not get a deprecation warning when you use this feature in PHPUnit 9) - Implemented #3770: Deprecate
MockBuilder::setMethods()(this deprecation is not implemented in code, you will not get a deprecation warning when you use this feature in PHPUnit 9) - Implemented #3746: Improve developer experience of global wrapper functions for assertions
- Implemented #3914: Refactor
PHPUnit\Util\Configuration - Implemented #4024: Make
PHPUnit\TextUI\ResultPrinteran interface - Multiple test case classes (classes that extend
TestCase) that are declared in a single sourcecode file are no longer supported
- Implemented #3333: Remove annotation(s) for expecting exceptions
- Implemented #3334: Drop support for PHP 7.2
- Implemented #3339: Remove assertions (and helper methods) that operate on (non-public) attributes
- Implemented #3342: Remove optional parameters of
assertEquals()andassertNotEquals() - Implemented #3370: Remove
assertInternalType()andassertNotInternalType() - Implemented #3426: Clean up
assertContains()andassertNotContains() - Implemented #3495: Remove
assertArraySubset() - Implemented #3523: Remove the
setUseErrorHandler()method - Implemented #3776: Deprecate
expectException(PHPUnit\Framework\Error\*) - Implemented #3951: Remove optional parameters of
assertFileEquals()etc. - Implemented #3956: Remove support for doubling multiple interfaces
- Implemented #3957: Remove
expectExceptionMessageRegExp() - Implemented #4012: Remove class name as CLI argument