class AnnotationDirectoryLoaderTest extends TestCase
{ private AnnotationDirectoryLoader
$loader;
private TraceableAnnotationClassLoader
$classLoader;
protected function setUp(): void
{ parent::
setUp();
$this->classLoader =
new TraceableAnnotationClassLoader();
$this->loader =
new AnnotationDirectoryLoader(new FileLocator(),
$this->classLoader
);
} public function testLoad() { $this->loader->
load(__DIR__.'/../Fixtures/AnnotatedClasses'
);
self::
assertSame([ BarClass::
class,
BazClass::
class,
EncodingClass::
class,
FooClass::
class,
],