Пример #1
0
 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());
 }
Пример #2
0
 /**
  * Iterates through annotation definitions, any exceptions thrown will bubble up.
  */
 public function checkDefinitions()
 {
     foreach ($this->metadataFactory->getAllClassNames() as $class) {
         $this->getClassMetadata($class);
     }
 }
Пример #3
0
 /**
  * Get all the class names
  * @return array
  */
 public function getAllClassNames()
 {
     return $this->metadataFactory->getAllClassNames();
 }