Пример #1
0
 private function then_ShouldBeMissingWith($param, $message)
 {
     $this->assert->isInstanceOf($this->result, MissingParametersResult::class);
     $this->assert->contains($this->result->getMissingNames(), $param);
     $this->assert($this->result->getException($param)->getMessage(), $message);
 }
Пример #2
0
 protected function handleValueResult(ValueResult $result)
 {
     $value = $result->getValue();
     $renderer = $this->renderers->getRenderer($value);
     if ($renderer instanceof WebRenderer) {
         $this->headElements = $renderer->headElements($value);
     }
     $this->model['output'] = $renderer->render($value);
     if (!$this->action->isModifying()) {
         $this->crumbs->updateCrumbs($this->action, $this->actionId);
     }
 }