Skip to content

Commit

Permalink
Fix ArrayUtilsTest::toIndexedArrayProvider case tests keys
Browse files Browse the repository at this point in the history
mathieu-ducrot authored Nov 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 78f77cd commit e6d7612
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Utils/ArrayUtilsTest.php
Original file line number Diff line number Diff line change
@@ -618,10 +618,10 @@ public function testToIndexedArray(array $expected, array $array): void
public function toIndexedArrayProvider(): array
{
return [
'simple_array_indexed' => [[1, 2, 3], ['3' => 1, '2' => 2, '1' => 3]],
'simple_array_not_indexed' => [[1, 2, 3], [1, 2, 3]],
'multidimensional_array_indexed' => [[[1, 2], [3, 4]], [['dummy' => 1, 'test' => 2], ['8' => 3, '1' => 4]]],
'multidimensional_array_not_indexed' => [[[1, 2], [3, 4]], [[1, 2], [3, 4]]],
'simple_associative_array' => [[1, 2, 3], ['3' => 1, '2' => 2, '1' => 3]],
'simple_indexed_array_no_chagnes' => [[1, 2, 3], [1, 2, 3]],
'multidimensional_associative_array' => [[[1, 2], [3, 4]], [['dummy' => 1, 'test' => 2], ['8' => 3, '1' => 4]]],
'multidimensional_indexed_array_no_changes' => [[[1, 2], [3, 4]], [[1, 2], [3, 4]]],
];
}
}

0 comments on commit e6d7612

Please sign in to comment.