Example #1
0
 public function testNestedAnnatations()
 {
     require __DIR__ . '/fixtures/extended.php';
     $class = new ReflectionClass("Extended");
     $annotations = $class->GetAnnotations();
     $this->AssertEquals($annotations[0]->getName(), 'foobar');
     $args = $annotations[0]->GetArgs();
     $this->assertTrue($args[0] instanceof \Notoj\Annotation\Annotation);
     $this->AssertEquals('foobar', $args[0]->getName());
     $this->AssertEquals(array('foobar'), $args[0]->getArgs());
     $this->AssertEquals('foobar', $args[1]);
 }