Update toContainEquals.php

This commit is contained in:
Erik Gaal
2023-11-06 10:31:48 +01:00
committed by GitHub
parent 79f5973e5a
commit 15cd7187e9

View File

@ -4,15 +4,15 @@ use PHPUnit\Framework\ExpectationFailedException;
test('passes arrays', function () {
expect([1, 2, 42])->toContain('42');
expect([1, 2, 42])->toContainEquals('42');
});
test('passes arrays with multiple needles', function () {
expect([1, 2, 42])->toContain('42', '2');
expect([1, 2, 42])->toContainEquals('42', '2');
});
test('failures', function () {
expect([1, 2, 42])->toContain('3');
expect([1, 2, 42])->toContainEquals('3');
})->throws(ExpectationFailedException::class);
test('failures with multiple needles (all failing)', function () {