Beispiel #1
0
 /**
  * Test if can remove multiple annotations.
  */
 public function testRemoveAnnotation()
 {
     $annotation1 = sha1(microtime(true));
     $annotation2 = sha1(microtime(true));
     $docBlock = new PHPDocBlock();
     $docBlock->addAnnotation($annotation1);
     $docBlock->addAnnotation($annotation2);
     $docBlock->removeAnnotation($annotation1);
     $docBlock->removeAnnotation($annotation2);
     $this->assertSame(array(), $docBlock->getSections());
 }