Example #1
0
 public function testUnsetHandler()
 {
     $this->if($extractor = new annotations\extractor())->then->object($extractor->unsetHandler(uniqid()))->isIdenticalTo($extractor)->array($extractor->getHandlers())->isEmpty()->if($extractor->setHandler($annotation = uniqid(), function () {
     }))->then->object($extractor->unsetHandler(uniqid()))->isIdenticalTo($extractor)->array($extractor->getHandlers())->isNotEmpty()->object($extractor->unsetHandler($annotation))->isIdenticalTo($extractor)->array($extractor->getHandlers())->isEmpty();
 }