You are here

public function AnnotationDriverTest::testGetAllClassNames in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/AnnotationDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\AnnotationDriverTest::testGetAllClassNames()

File

vendor/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);
}