public function DefaultFileLocatorTest::testGetAllClassNames in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
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"));
}