use Symfony\Component\Routing\Tests\Fixtures\TraceableAnnotationClassLoader;
class DirectoryLoaderTest extends TestCase
{ private DirectoryLoader
$loader;
protected function setUp(): void
{ parent::
setUp();
$locator =
new FileLocator();
$this->loader =
new DirectoryLoader($locator);
$resolver =
new LoaderResolver([ new YamlFileLoader($locator),
new AnnotationFileLoader($locator,
new TraceableAnnotationClassLoader()),
$this->loader,
]);
$this->loader->
setResolver($resolver);
} public function testLoadDirectory() { $collection =
$this->loader->
load(__DIR__.'/../Fixtures/directory', 'directory'
);