-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature/assertionIssues related to assertions and expectationsIssues related to assertions and expectationstype/enhancementA new idea that should be implementedA new idea that should be implemented
Milestone
Description
assertObjectEquals is great for VOs and it would be lovely to have the opposite available as well, assertObjectNotEquals. Sure, it’s trivial to polyfill but still it would be lovely if PHPUnit could offer it out of the box.
public static function assertObjectNotEquals(object $expected, object $actual, string $method = 'equals', string $message = ''): void
{
self::assertThat(
$actual,
self::logicalNot(self::objectEquals($expected, $method)),
$message,
);
}Metadata
Metadata
Assignees
Labels
feature/assertionIssues related to assertions and expectationsIssues related to assertions and expectationstype/enhancementA new idea that should be implementedA new idea that should be implemented