public function testBuildClassInfosBasedOnPath() { $annotationReader = new AnnotationReader(); $annotationManager = new AnnotationManager($annotationReader); $classInfos = $annotationManager->buildClassInfosBasedOnPath(dirname(__DIR__) . '/Classes1'); $this->assertCount(2, $classInfos); $this->assertInstanceOf('Saxulum\\AnnotationManager\\Helper\\ClassInfo', $classInfos[0]); $this->assertInstanceOf('Saxulum\\AnnotationManager\\Helper\\ClassInfo', $classInfos[1]); $this->checkTestClass1($classInfos[0]); $this->checkTestClass2($classInfos[1]); }
/** * Returns all classes information inside Zeus initial directory * configured at zeus.json * @return \Saxulum\AnnotationManager\Helper\ClassInfo */ private function getAllClasses() { $annotationReader = new SimpleAnnotationReader(); $annotationManager = new AnnotationManager($annotationReader); $zConf = Configuration::getInstance(); return $annotationManager->buildClassInfosBasedOnPath($zConf->getInitialDirectory()); }