You are here

public function SymfonyFileLocatorTest::testFindMappingFile in Zircon Profile 8.0

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/SymfonyFileLocatorTest.php, line 150

Class

SymfonyFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testFindMappingFile() {
  $path = __DIR__ . "/_files";
  $prefix = "Foo";
  $locator = new SymfonyFileLocator(array(
    $path => $prefix,
  ), ".yml");
  $this
    ->assertEquals(__DIR__ . "/_files/stdClass.yml", $locator
    ->findMappingFile("Foo\\stdClass"));
}