public function FileDriverTest::testGetAllClassNamesBothSources in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php, line 68
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testGetAllClassNamesBothSources() {
$locator = $this
->newLocator();
$locator
->expects($this
->any())
->method('getAllClassNames')
->with($this
->equalTo('global'))
->will($this
->returnValue(array(
'stdClass',
)));
$driver = new TestFileDriver($locator);
$driver
->setGlobalBasename("global");
$classNames = $driver
->getAllClassNames();
$this
->assertEquals(array(
'stdGlobal',
'stdGlobal2',
'stdClass',
), $classNames);
}