$dbApps =
[];
foreach ($apps as $app =>
$prio) { $dbApps[$app] =
[ 'version' => '1.0.0',
'template_load_priority' =>
$prio,
];
} $connection->
method('fetchAllAssociativeIndexed'
)->
willReturn($dbApps);
$builder =
new BundleHierarchyBuilder( $kernel,
$connection );
static::
assertSame($expectedSorting,
array_keys($builder->
buildNamespaceHierarchy([])));
} /**
* @return iterable<string, array<array<int|string, int|string>>>
*/
public static function sortingProvider(): iterable
{