public function SymfonyFileLocatorTest::testGetAllClassNames in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
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"));
}