You are here

public function ClassMetadataFactoryTest::testWillFailOnFallbackFailureWithNotLoadedMetadata in Zircon Profile 8.0

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php, line 121

Class

ClassMetadataFactoryTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testWillFailOnFallbackFailureWithNotLoadedMetadata() {
  $this->cmf->fallbackCallback = function () {
    return null;
  };
  $this->cmf->metadata = null;
  $this
    ->setExpectedException('Doctrine\\Common\\Persistence\\Mapping\\MappingException');
  $this->cmf
    ->getMetadataFor('Foo');
}