Inheritance: implements iteratorAggregate
Beispiel #1
0
 public function testResetHandlers()
 {
     $this->assert->if($parser = new script\arguments\parser())->then->object($parser->resetHandlers())->isIdenticalTo($parser)->array($parser->getHandlers())->isEmpty()->array($parser->getPriorities())->isEmpty()->if($parser->addHandler(function ($script, $argument, $values) {
     }, array('-a')))->then->object($parser->resetHandlers())->isIdenticalTo($parser)->array($parser->getHandlers())->isEmpty()->array($parser->getPriorities())->isEmpty();
 }