From 15cd7187e96b5f1339d5ae3b3e033c369a7150de Mon Sep 17 00:00:00 2001 From: Erik Gaal Date: Mon, 6 Nov 2023 10:31:48 +0100 Subject: [PATCH] Update toContainEquals.php --- tests/Features/Expect/toContainEquals.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Features/Expect/toContainEquals.php b/tests/Features/Expect/toContainEquals.php index a789b41d..ea050fcd 100644 --- a/tests/Features/Expect/toContainEquals.php +++ b/tests/Features/Expect/toContainEquals.php @@ -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 () {