private function FileDriverTest::newLocator in Plug 7
7 calls to FileDriverTest::newLocator()
- FileDriverTest::testGetAllClassNamesBothSources in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php - FileDriverTest::testGetAllClassNamesFromMappingFile in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php - FileDriverTest::testGetAllClassNamesGlobalBasename in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php - FileDriverTest::testGetElementFromFile in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php - FileDriverTest::testGetElementFromGlobalFile in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php, line 119
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
private function newLocator() {
$locator = $this
->getMock('Doctrine\\Common\\Persistence\\Mapping\\Driver\\FileLocator');
$locator
->expects($this
->any())
->method('getFileExtension')
->will($this
->returnValue('.yml'));
$locator
->expects($this
->any())
->method('getPaths')
->will($this
->returnValue(array(
__DIR__ . "/_files",
)));
return $locator;
}