예제 #1
0
 /**
  * Test if can remove multiple sections.
  */
 public function testRemoveSection()
 {
     $section1 = sha1(microtime(true));
     $section2 = sha1(microtime(true));
     $docBlock = new PHPDocBlock();
     $docBlock->addSection($section1);
     $docBlock->addSection($section2);
     $docBlock->removeSection($section1);
     $docBlock->removeSection($section2);
     $this->assertSame(array(), $docBlock->getSections());
 }