You are here

public function AnnotationDriverTest::testGetAllClassNames in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/AnnotationDriverTest.php, line 11

Class

AnnotationDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetAllClassNames() {
  $reader = new AnnotationReader();
  $driver = new SimpleAnnotationDriver($reader, array(
    __DIR__ . '/_files/annotation',
  ));
  $classes = $driver
    ->getAllClassNames();
  $this
    ->assertEquals(array(
    'Doctrine\\TestClass',
  ), $classes);
}