public function testRemovingExtension() { $annotationDriver = \Drest\Mapping\Driver\AnnotationDriver::create(array(__DIR__ . '/../Entities/Typical')); $annotationDriver->removeExtensions(); $metadataFactory = new MetadataFactory($annotationDriver); $this->assertCount(0, $metadataFactory->getAllClassNames()); $annotationDriver->addExtension('php'); $this->assertGreaterThan(0, $metadataFactory->getAllClassNames()); }
/** * Iterates through annotation definitions, any exceptions thrown will bubble up. */ public function checkDefinitions() { foreach ($this->metadataFactory->getAllClassNames() as $class) { $this->getClassMetadata($class); } }
/** * Get all the class names * @return array */ public function getAllClassNames() { return $this->metadataFactory->getAllClassNames(); }