public function testWillFailOnFallbackFailureWithNotLoadedMetadata()
 {
     $this->cmf->fallbackCallback = function () {
         return null;
     };
     $this->cmf->metadata = null;
     $this->setExpectedException('Doctrine\\Common\\Persistence\\Mapping\\MappingException');
     $this->cmf->getMetadataFor('Foo');
 }
 public function testGetAliasedMetadata()
 {
     $loadedMetadata = $this->cmf->getMetadataFor('prefix:ChildEntity');
     $this->assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__ . '\\ChildEntity'));
     $this->assertTrue($this->cmf->hasMetadataFor('prefix:ChildEntity'));
 }