@@ -36,49 +36,49 @@ public function orderByChild(string $childKey, mixed $expected, mixed $given): v
3636 public static function valueProvider (): Iterator
3737 {
3838 yield 'scalar ' => [
39- 'childKey ' => ' key ' ,
40- 'expected ' => ' scalar ' ,
41- 'given ' => ' scalar ' ,
39+ 'key ' ,
40+ 'scalar ' ,
41+ 'scalar ' ,
4242 ];
4343 yield 'array ' => [
44- 'childKey ' => ' key ' ,
45- ' expected ' => [
44+ 'key ' ,
45+ [
4646 'third ' => ['key ' => 1 ],
4747 'fourth ' => ['key ' => 2 ],
4848 'first ' => ['key ' => 3 ],
4949 'second ' => ['key ' => 4 ],
5050 ],
51- ' given ' => [
51+ [
5252 'first ' => ['key ' => 3 ],
5353 'second ' => ['key ' => 4 ],
5454 'third ' => ['key ' => 1 ],
5555 'fourth ' => ['key ' => 2 ],
5656 ],
5757 ];
5858 yield 'nested ' => [
59- 'childKey ' => ' child/grandchild ' ,
60- ' expected ' => [
59+ 'child/grandchild ' ,
60+ [
6161 'third ' => ['child ' => ['grandchild ' => 1 ]],
6262 'fourth ' => ['child ' => ['grandchild ' => 2 ]],
6363 'first ' => ['child ' => ['grandchild ' => 3 ]],
6464 'second ' => ['child ' => ['grandchild ' => 4 ]],
6565 ],
66- ' given ' => [
66+ [
6767 'first ' => ['child ' => ['grandchild ' => 3 ]],
6868 'second ' => ['child ' => ['grandchild ' => 4 ]],
6969 'third ' => ['child ' => ['grandchild ' => 1 ]],
7070 'fourth ' => ['child ' => ['grandchild ' => 2 ]],
7171 ],
7272 ];
7373 yield 'super_nested ' => [
74- 'childKey ' => ' child/grandchild/great_grandchild ' ,
75- ' expected ' => [
74+ 'child/grandchild/great_grandchild ' ,
75+ [
7676 'third ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 1 ]]],
7777 'fourth ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 2 ]]],
7878 'first ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 3 ]]],
7979 'second ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 4 ]]],
8080 ],
81- ' given ' => [
81+ [
8282 'first ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 3 ]]],
8383 'second ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 4 ]]],
8484 'third ' => ['child ' => ['grandchild ' => ['great_grandchild ' => 1 ]]],
0 commit comments