public function ClassMetadataFactoryTest::testCacheGetMetadataFor in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ ClassMetadataFactoryTest.php, line 69
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testCacheGetMetadataFor() {
$cache = new ArrayCache();
$this->cmf
->setCacheDriver($cache);
$loadedMetadata = $this->cmf
->getMetadataFor(__NAMESPACE__ . '\\ChildEntity');
$this
->assertSame($loadedMetadata, $cache
->fetch(__NAMESPACE__ . '\\ChildEntity$CLASSMETADATA'));
}