public function DefaultFileLocatorTest::testGetAllClassNames in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ DefaultFileLocatorTest.php, line 59
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
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"));
}