Skip to content

Commit 72fc49a

Browse files
authored
Merge pull request #17 from W0rma/fix-assert-not-contains-equals
fix: re-add assertNotContainsEquals()
2 parents 4b95195 + 5cd564a commit 72fc49a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Codeception/Util/Shared/InheritedAsserts.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ protected function assertContainsEquals(mixed $needle, iterable $haystack, strin
9191
Assert::assertContainsEquals($needle, $haystack, $message);
9292
}
9393

94+
/**
95+
* @param iterable<mixed> $haystack
96+
*/
97+
protected function assertNotContainsEquals(mixed $needle, iterable $haystack, string $message = ''): void
98+
{
99+
Assert::assertNotContainsEquals($needle, $haystack, $message);
100+
}
101+
94102
/**
95103
* Asserts that a haystack contains only values of a given type.
96104
* @param 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource'|'resource (closed)'|'scalar'|'string' $type

0 commit comments

Comments
 (0)