From 5cd564a7ea08000c1f491796c57103a1a4d41bb3 Mon Sep 17 00:00:00 2001 From: W0rma Date: Thu, 23 Oct 2025 14:46:04 +0200 Subject: [PATCH] fix: re-add assertNotContainsEquals() because it is still part of phpunit --- src/Codeception/Util/Shared/InheritedAsserts.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Codeception/Util/Shared/InheritedAsserts.php b/src/Codeception/Util/Shared/InheritedAsserts.php index 5048840..92ca18b 100644 --- a/src/Codeception/Util/Shared/InheritedAsserts.php +++ b/src/Codeception/Util/Shared/InheritedAsserts.php @@ -91,6 +91,14 @@ protected function assertContainsEquals(mixed $needle, iterable $haystack, strin Assert::assertContainsEquals($needle, $haystack, $message); } + /** + * @param iterable $haystack + */ + protected function assertNotContainsEquals(mixed $needle, iterable $haystack, string $message = ''): void + { + Assert::assertNotContainsEquals($needle, $haystack, $message); + } + /** * Asserts that a haystack contains only values of a given type. * @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource'|'resource (closed)'|'scalar'|'string' $type