You are here

public function DefaultFileLocatorTest::testFindMappingFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/DefaultFileLocatorTest.php \Doctrine\Tests\Common\Persistence\Mapping\DefaultFileLocatorTest::testFindMappingFile()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/DefaultFileLocatorTest.php, line 37

Class

DefaultFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testFindMappingFile() {
  $path = __DIR__ . "/_files";
  $locator = new DefaultFileLocator(array(
    $path,
  ), ".yml");
  $this
    ->assertEquals(__DIR__ . '/_files' . DIRECTORY_SEPARATOR . 'stdClass.yml', $locator
    ->findMappingFile('stdClass'));
}