Skip to content

Commit 9c2b978

Browse files
committed
Avoid test fails on array key different order
1 parent 90f6220 commit 9c2b978

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Helper/ConfigHelperTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testNormalizeWillConvertDotNotationToNestedArray(): void
7272

7373
$result = ConfigHelper::normalize($input);
7474

75-
self::assertSame($expected, $result);
75+
self::assertEquals($expected, $result);
7676
}
7777

7878
#[Test]
@@ -92,7 +92,7 @@ public function testNormalizeWillHandleMixedNestedArrays(): void
9292

9393
$result = ConfigHelper::normalize($input);
9494

95-
self::assertSame($expected, $result);
95+
self::assertEquals($expected, $result);
9696
}
9797

9898
#[Test]
@@ -102,7 +102,7 @@ public function testNormalizeWillReturnIndexedArrayUnchanged(): void
102102

103103
$result = ConfigHelper::normalize($input);
104104

105-
self::assertSame($input, $result);
105+
self::assertEquals($input, $result);
106106
}
107107

108108
#[Test]
@@ -124,7 +124,7 @@ public function testNormalizeWillMergeArraysWhenKeysOverlap(): void
124124

125125
$result = ConfigHelper::normalize($input);
126126

127-
self::assertSame($expected, $result);
127+
self::assertEquals($expected, $result);
128128
}
129129

130130
#[Test]
@@ -148,7 +148,7 @@ public function testFlattenWillConvertNestedArrayToDotNotation(): void
148148

149149
$result = iterator_to_array(ConfigHelper::flatten($input));
150150

151-
self::assertSame($expected, $result);
151+
self::assertEquals($expected, $result);
152152
}
153153

154154
#[Test]
@@ -158,6 +158,6 @@ public function testFlattenWillHandleEmptyArray(): void
158158

159159
$result = iterator_to_array(ConfigHelper::flatten($input));
160160

161-
self::assertSame([], $result);
161+
self::assertEquals([], $result);
162162
}
163163
}

0 commit comments

Comments
 (0)