You are here

public function SymfonyFileLocatorTest::testGetAllClassNames in Zircon Profile 8

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/SymfonyFileLocatorTest.php, line 52

Class

SymfonyFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetAllClassNames() {
  $path = __DIR__ . "/_files";
  $prefix = "Foo";
  $locator = new SymfonyFileLocator(array(
    $path => $prefix,
  ), ".yml");
  $classes = $locator
    ->getAllClassNames(null);
  sort($classes);
  $this
    ->assertEquals(array(
    "Foo\\global",
    "Foo\\stdClass",
  ), $classes);
  $this
    ->assertEquals(array(
    "Foo\\stdClass",
  ), $locator
    ->getAllClassNames("global"));
}