File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
DependencyInjection/Compiler
Tests/Unit/DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function process(ContainerBuilder $container)
24
24
}
25
25
}
26
26
27
- ksort ($ groupByPriority );
27
+ krsort ($ groupByPriority, SORT_NUMERIC );
28
28
29
29
$ flatExtensions = [];
30
30
foreach ($ groupByPriority as $ extension ) {
Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ public function testShouldOrderExtensionsByPriority()
73
73
74
74
$ orderedExtensions = $ extensions ->getArgument (0 );
75
75
76
- $ this ->assertEquals (new Reference ('bar_extension ' ), $ orderedExtensions [0 ]);
76
+ $ this ->assertEquals (new Reference ('foo_extension ' ), $ orderedExtensions [0 ]);
77
77
$ this ->assertEquals (new Reference ('baz_extension ' ), $ orderedExtensions [1 ]);
78
- $ this ->assertEquals (new Reference ('foo_extension ' ), $ orderedExtensions [2 ]);
78
+ $ this ->assertEquals (new Reference ('bar_extension ' ), $ orderedExtensions [2 ]);
79
79
}
80
80
81
81
public function testShouldAssumePriorityZeroIfPriorityIsNotSet ()
@@ -103,8 +103,8 @@ public function testShouldAssumePriorityZeroIfPriorityIsNotSet()
103
103
104
104
$ orderedExtensions = $ extensions ->getArgument (0 );
105
105
106
- $ this ->assertEquals (new Reference ('baz_extension ' ), $ orderedExtensions [0 ]);
106
+ $ this ->assertEquals (new Reference ('bar_extension ' ), $ orderedExtensions [0 ]);
107
107
$ this ->assertEquals (new Reference ('foo_extension ' ), $ orderedExtensions [1 ]);
108
- $ this ->assertEquals (new Reference ('bar_extension ' ), $ orderedExtensions [2 ]);
108
+ $ this ->assertEquals (new Reference ('baz_extension ' ), $ orderedExtensions [2 ]);
109
109
}
110
110
}
You can’t perform that action at this time.
0 commit comments