You are here

public function DefaultFileLocatorTest::testGetAllClassNames in Zircon Profile 8

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/DefaultFileLocatorTest.php, line 59

Class

DefaultFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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