public function FileDriverTest::testGetElementFromFile in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php, line 31
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testGetElementFromFile() {
$locator = $this
->newLocator();
$locator
->expects($this
->once())
->method('findMappingFile')
->with($this
->equalTo('stdClass'))
->will($this
->returnValue(__DIR__ . '/_files/stdClass.yml'));
$driver = new TestFileDriver($locator);
$this
->assertEquals('stdClass', $driver
->getElement('stdClass'));
}