Exemplo n.º 1
0
 public function testParentClass2()
 {
     $foo = new \Notoj\File(__DIR__ . "/fixtures/extended.php");
     foreach ($foo->getClasses('Foo') as $class) {
         $parent = $class->GetParent($foo)->getParent($foo)->getParent($foo);
         $this->assertNotNull($parent);
         $this->assertNull($parent->getParent($foo));
         $total = 0;
         foreach ($parent->getAnnotations() as $annotation) {
             $this->assertEquals($annotation->Getname(), 'xx');
             $total++;
         }
         $this->assertEquals(1, $total);
     }
 }