mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
Update toContainEquals.php
This commit is contained in:
@ -4,15 +4,15 @@ use PHPUnit\Framework\ExpectationFailedException;
|
|||||||
|
|
||||||
|
|
||||||
test('passes arrays', function () {
|
test('passes arrays', function () {
|
||||||
expect([1, 2, 42])->toContain('42');
|
expect([1, 2, 42])->toContainEquals('42');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('passes arrays with multiple needles', function () {
|
test('passes arrays with multiple needles', function () {
|
||||||
expect([1, 2, 42])->toContain('42', '2');
|
expect([1, 2, 42])->toContainEquals('42', '2');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('failures', function () {
|
test('failures', function () {
|
||||||
expect([1, 2, 42])->toContain('3');
|
expect([1, 2, 42])->toContainEquals('3');
|
||||||
})->throws(ExpectationFailedException::class);
|
})->throws(ExpectationFailedException::class);
|
||||||
|
|
||||||
test('failures with multiple needles (all failing)', function () {
|
test('failures with multiple needles (all failing)', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user