};
} /**
* @param array<string, array<string, string>>$expected
*/
private function assertFileCollection(array
$expected, FileCollection
$files): void
{ $flatFiles =
[];
foreach ($files as $file) { $flatFiles[$file->
getFilepath()] =
$file->
getResolveMapping();
} static::
assertEquals($expected,
$flatFiles);
} private function stripProjectDir(string
$path): string
{ $projectDir =
$this->
getContainer()->
getParameter('kernel.project_dir'
);
if (str_starts_with($path,
$projectDir)) { return substr($path, \
strlen($projectDir) + 1
);
}