/** * @param ClassInfo $classInfo */ protected function checkTestClass1(ClassInfo $classInfo) { $this->assertEquals('Saxulum\\Tests\\AnnotationManager\\Classes1\\TestClass1', $classInfo->getName()); $propertyInfos = $classInfo->getPropertyInfos(); $this->assertCount(1, $propertyInfos); $propertyAnnotations = $propertyInfos[0]->getAnnotations(); $this->assertCount(1, $propertyAnnotations); $this->assertInstanceOf('Saxulum\\Tests\\AnnotationManager\\Annotation\\TestAnnotationB', $propertyAnnotations[0]); $this->assertFalse($propertyAnnotations[0]->value); $methodInfos = $classInfo->getMethodInfos(); $this->assertCount(3, $methodInfos); $methodAnnotations = $methodInfos[0]->getAnnotations(); $this->assertEquals('test1', $methodInfos[0]->getName()); $this->assertCount(2, $methodAnnotations); $this->assertInstanceOf('Saxulum\\Tests\\AnnotationManager\\Annotation\\TestAnnotationA', $methodAnnotations[0]); $this->assertEquals('test1', $methodAnnotations[0]->value); $this->assertInstanceOf('Saxulum\\Tests\\AnnotationManager\\Annotation\\TestAnnotationB', $methodAnnotations[1]); $this->assertTrue($methodAnnotations[1]->value); $methodAnnotations = $methodInfos[1]->getAnnotations(); $this->assertEquals('test2', $methodInfos[1]->getName()); $this->assertCount(1, $methodAnnotations); $this->assertInstanceOf('Saxulum\\Tests\\AnnotationManager\\Annotation\\TestAnnotationB', $methodAnnotations[0]); $this->assertTrue($methodAnnotations[0]->value); $this->assertCount(0, $methodInfos[2]->getAnnotations()); $this->assertEquals('test3', $methodInfos[2]->getName()); }