public function FileDriverTest::testGetElementFromFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\FileDriverTest::testGetElementFromFile()
File
- vendor/
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'));
}