You are here

public function ClassMetadataFactoryTest::testGetAliasedMetadata in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php, line 79

Class

ClassMetadataFactoryTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetAliasedMetadata() {
  $this->cmf
    ->getMetadataFor('prefix:ChildEntity');
  $this
    ->assertTrue($this->cmf
    ->hasMetadataFor(__NAMESPACE__ . '\\ChildEntity'));
  $this
    ->assertTrue($this->cmf
    ->hasMetadataFor('prefix:ChildEntity'));
}