All notable changes are documented in this file using the Keep a CHANGELOG principles.
MockObjectComparator only works on instances of PHPUnit\Framework\MockObject\MockObject, but not on instances of PHPUnit\Framework\MockObject\StubMockObjectComparator only ignores the $__phpunit_invocationMocker property, but not other properties with names prefixed with __phpunit_Comparator::$factory is now private, use Comparator::factory() insteadComparisonFailure, DOMNodeComparator, DateTimeComparator, ExceptionComparator, MockObjectComparator, NumericComparator, ResourceComparator, SplObjectStorageComparator, and TypeComparator are now finalScalarComparator and DOMNodeComparator now use mb_strtolower($string, 'UTF-8') instead of strtolower($string)$identical parameter from ComparisonFailure::__construct()Comparator::$exporterfloat comparison precision'0' and falseSebastianBergmann\Comparator\Exception now correctly extends \ThrowableValueErrorcomposer.json from ^7.3 || ^8.0 to >=7.3float comparison precision'0' and falsecomposer.json from ^7.1 to >=7.1MockObjectComparator is now tried before all other (default) comparatorsDOMNodeComparator ignores $ignoreCase parameterScalarComparator does not handle extremely ugly string comparison edge casesDateTimeComparator does not support fractional second deltassebastian/diffDateTimeImmutable objectsSebastianBergmann\Comparator\Factory::reset() to unregister all non-default comparatorsphpunit/phpunit-mock-objects version ^5.0