public function SymfonyFileLocatorTest::testGetAllClassNames in Plug 7
File
- lib/
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"));
}