/** * Test if nested annotations are successfully initialized. * * @return void */ public function testNestedAnnotationsFromReflectionClass() { // load the annotations of this class $reflectionClass = new ReflectionClass($this); // load the outer annotation $outer = $reflectionClass->getAnnotation('Outer'); // make sure that we've two inner annotations $this->assertCount(2, $outer->getValue(0)); // query whether the annotation has been instanciated successfully foreach ($outer->getValue(0) as $inner) { $this->assertInstanceOf('AppserverIo\\Lang\\Reflection\\AnnotationInterface', $inner); } }