public function ClassMetadataFactoryTest::testWillFailOnFallbackFailureWithNotLoadedMetadata in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ ClassMetadataFactoryTest.php, line 121
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testWillFailOnFallbackFailureWithNotLoadedMetadata() {
$this->cmf->fallbackCallback = function () {
return null;
};
$this->cmf->metadata = null;
$this
->setExpectedException('Doctrine\\Common\\Persistence\\Mapping\\MappingException');
$this->cmf
->getMetadataFor('Foo');
}