Colors scheme:
	Blue = reviewed, no changes required.
	Green = changes applied
	Red = pending to implement.

PHPUnit 9.0:
	•	#3333: Remove annotation(s) for expecting exceptions
	•	#3776: Deprecate expectException(PHPUnit\Framework\Error\*)
	•	#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)
	⁃	Basically replace by onlyMethods() (if existing), addMethods() (if not existing)
	⁃	null => [] to mean "all"
	•	#3630: Deprecate support for ClassName<*> as values for @covers and @uses annotations (this deprecation is not implemented in code, you will not get a deprecation warning when you use this feature in PHPUnit 9)
	•	#3957: Remove expectExceptionMessageRegExp()
	•	#3426: Clean up assertContains() and assertNotContains()
	⁃	Can be converted to non-strict assertContainsEquals()
	⁃	But, also to assertArrayHasKey() that continues being non-strict when previously using array_keys() conversion.
	⁃	Finally (also can cast the expectation to (int) though that's uglier.
PHPUnit 9.1:
	•	#4039: Deprecate custom test suite loader
	•	#4062: Deprecate assertNotIsReadable()
	•	#4065: Deprecate assertNotIsWritable()
	•	#4068: Deprecate assertDirectoryNotExists()
	•	#4071: Deprecate assertDirectoryNotIsReadable()
	•	#4074: Deprecate assertDirectoryNotIsWritable()
	•	#4077: Deprecate assertFileNotExists()
	•	#4080: Deprecate assertFileNotIsReadable()
	•	#4083: Deprecate assertFileNotIsWritable()
	•	#4086: Deprecate assertRegExp()
	•	#4089: Deprecate assertNotRegExp()
	•	#4091: Deprecate assertEqualXMLStructure()
	•	#4105: Deprecate multiple test case classes in single file and test case class name differing from filename. Followups: MDL-37655 and MDL-71049, also we need to add some checker like MDLSITE-2096 

PHPUnit 9.3:
	•	PHPUnit\Framework\TestCase::$backupGlobalsBlacklist is now deprecated, please use PHPUnit\Framework\TestCase::$backupGlobalsExcludeList instead
	•	PHPUnit\Framework\TestCase::$backupStaticAttributesBlacklist is now deprecated, please use PHPUnit\Framework\TestCase::$backupStaticAttributesExcludeList instead
	•	PHPUnit\Util\Blacklist is now deprecated, please use PHPUnit\Util\ExcludeList instead
	•	Using --whitelist <directory> to include a directory in code coverage reports is now deprecated, please use --coverage-filter <directory> instead
	•	#4297: Deprecate at() matcher

General: Configuration of Code Coverage and Logging in phpunit.xml (deprecations...)

PHPUnit 9.5:
	•	#4493: Emit error when (configured) test directory does not exist