make phpunit run inside framework

This commit is contained in:
sunxyw
2022-03-29 00:46:17 +08:00
committed by Jerry Ma
parent 9f4b5fb14a
commit 05a3d0111b
6 changed files with 70 additions and 25 deletions

View File

@@ -82,6 +82,7 @@ class AnnotationParser
$this->reader = new DualReader(new AnnotationReader(), new AttributeReader());
foreach ($all_class as $v) {
Console::debug('正在检索 ' . $v);
$reflection_class = new ReflectionClass($v);
$methods = $reflection_class->getMethods(ReflectionMethod::IS_PUBLIC);
$class_annotations = $this->reader->getClassAnnotations($reflection_class);