Пример #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();
 }
Пример #2
0
 protected function setParentClassAnnotations(annotations\extractor $extractor)
 {
     $extractor->unsetHandler('ignore')->unsetHandler('tags')->unsetHandler('maxChildrenNumber');
     return $this;
 }