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(); }
protected function setParentClassAnnotations(annotations\extractor $extractor) { $extractor->unsetHandler('ignore')->unsetHandler('tags')->unsetHandler('maxChildrenNumber'); return $this; }