You are here

public function FileDriverTest::testGetElementFromFile in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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'));
}