Exemple #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);
     }
 }
Exemple #2
0
 /**
  *  @expectedException RuntimeException
  */
 public function testArgException()
 {
     $fs = new \Notoj\File(__FILE__);
     $this->assertNotFalse($fs->getOne('bug01'));
     $fs->getOne('bug01')->getArg("something");
 }