$resultEn =
array_filter(/**
* @param array<string, bool|string> $item
*/
$result,
fn (array
$item) =>
$item['iso'
] === 'en-GB'
);
static::
assertCount(2,
$resultDe);
static::
assertCount(1,
$resultEn);
} private function getCollection(): SnippetFileCollection
{ $collection =
new SnippetFileCollection();
$collection->
add(new MockSnippetFile('storefront.de-DE', 'de-DE', '{}', true, 'SwagPlugin'
));
$collection->
add(new MockSnippetFile('storefront.de-DE_extension', 'de-DE', '{}', false, 'SwagPlugin'
));
$collection->
add(new MockSnippetFile('storefront.en-GB', 'en-GB', '{}', true
));
return $collection;
}}