public function testGetAllMetadata() { $driver = new PHPDriver(array(__DIR__ . '/Driver/Model/php')); $this->objectAdapterManager->getConfiguration()->setMetadataDriverImpl($driver); $cmf = new ClassMetadataFactory($this->objectAdapterManager); $cm = new ClassMetadata('stdClass'); $cmf->setMetadataFor('stdClass', $cm); $metadata = $cmf->getAllMetadata(); $this->assertTrue(is_array($metadata)); }
/** * @param string $className * @return ClassMetadata */ public function getClassMetadata($className) { return $this->classMetadataFactory->getMetadataFor($className); }