Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getResponse(StepInterface $step)
 {
     if ($this->getStepName()) {
         return $step->proceed($this->getStepName());
     }
     throw new ProcessValidatorException(400, $this->getMessage());
 }
 function it_has_response(StepInterface $step)
 {
     $this->setStepName('step_name');
     $step->proceed('step_name')->shouldBeCalled();
     $this->getResponse($step);
 }