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