You are here

public function ClassMetadataFactoryTest::testGetMetadataFor in Plug 7

File

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

Class

ClassMetadataFactoryTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetMetadataFor() {
  $metadata = $this->cmf
    ->getMetadataFor('stdClass');
  $this
    ->assertInstanceOf('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata', $metadata);
  $this
    ->assertTrue($this->cmf
    ->hasMetadataFor('stdClass'));
}