From a8fdddf997f95fa3087fce9161d6b6164c6bfffe Mon Sep 17 00:00:00 2001 From: Frank Dekker Date: Sun, 6 Oct 2024 11:19:36 +0200 Subject: [PATCH] Fix assert --- tests/Unit/ArraysTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/ArraysTest.php b/tests/Unit/ArraysTest.php index 012b0d7..681ed0b 100644 --- a/tests/Unit/ArraysTest.php +++ b/tests/Unit/ArraysTest.php @@ -318,7 +318,7 @@ public function testWrap(): void public function testRemoveTypes(): void { $input = [false, 0, '0', 'false', true, 1, '1', 'true']; - static::assertEqualsCanonicalizing([0, '0', 'false', 1, '1', 'true'], Arrays::removeTypes($input, ['bool'])); + static::assertSame([0, '0', 'false', 1, '1', 'true'], array_values(Arrays::removeTypes($input, ['bool']))); static::assertSame(['null'], Arrays::removeTypes(['null', null], ['null'])); static::assertSame(['1', 2.00], Arrays::removeTypes(['1', 2.00, 3], ['int'])); static::assertSame([1, '2.00'], Arrays::removeTypes([1, '2.00', 3.00], ['float']));