From 671f84e41ab50deb66b1e818ad001f43f19d4382 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Sat, 6 Apr 2024 11:08:36 +0200 Subject: [PATCH] fix test since we use array_is_list --- tests/Util/CurveArrayTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/Util/CurveArrayTest.php b/tests/Util/CurveArrayTest.php index c074a93..d117af2 100644 --- a/tests/Util/CurveArrayTest.php +++ b/tests/Util/CurveArrayTest.php @@ -112,11 +112,7 @@ public function testIsAssoc() $this->assertFalse(CurveArray::isAssoc(['foo'])); $this->assertTrue(CurveArray::isAssoc(['foo' => null, 'bar' => null])); $this->assertTrue(CurveArray::isAssoc([0 => 'foo', 'foo' => null, 'bar' => null])); - - // it is a know problem that this should return false. Since we use - // isset for performance reasons it returns true. If it becomes - // important we can switch to array_key_exists - $this->assertTrue(CurveArray::isAssoc([null])); + $this->assertFalse(CurveArray::isAssoc([null])); } public function testObjectify()