You are here

public function SymfonyFileLocatorTest::testFindMappingFileNotFound in Zircon Profile 8

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

File

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

Class

SymfonyFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testFindMappingFileNotFound() {
  $path = __DIR__ . "/_files";
  $prefix = "Foo";
  $locator = new SymfonyFileLocator(array(
    $path => $prefix,
  ), ".yml");
  $this
    ->setExpectedException("Doctrine\\Common\\Persistence\\Mapping\\MappingException", "No mapping file found named '" . __DIR__ . "/_files/stdClass2.yml' for class 'Foo\\stdClass2'.");
  $locator
    ->findMappingFile("Foo\\stdClass2");
}