public function ClassMetadataFactoryTest::testWillFallbackOnNotLoadedMetadata in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php \Doctrine\Tests\Common\Persistence\Mapping\ClassMetadataFactoryTest::testWillFallbackOnNotLoadedMetadata()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ ClassMetadataFactoryTest.php, line 108
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testWillFallbackOnNotLoadedMetadata() {
$classMetadata = $this
->getMock('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata');
$this->cmf->fallbackCallback = function () use ($classMetadata) {
return $classMetadata;
};
$this->cmf->metadata = null;
$this
->assertSame($classMetadata, $this->cmf
->getMetadataFor('Foo'));
}