Exemplo n.º 1
0
 function let(ArgumentResolver $argumentResolver, InterpreterInterface $interpreter, Procedure $procedure, Step $stepA, Step $stepB, Step $stepC)
 {
     $this->argumentResolver = $argumentResolver;
     $this->interpreter = $interpreter;
     $this->procedure = $procedure;
     $this->stepA = $stepA;
     $this->stepB = $stepB;
     $this->stepC = $stepC;
     $stepA->getIdentifier()->willReturn(self::STEP_NAME_A);
     $stepB->getIdentifier()->willReturn(self::STEP_NAME_B);
     $stepC->getIdentifier()->willReturn(self::STEP_NAME_C);
     $stepA->getArguments()->willReturn(array());
     $stepB->getArguments()->willReturn(array());
     $stepC->getArguments()->willReturn(array());
     $this->setArgumentResolver($argumentResolver);
     $this->setInterpreter($interpreter);
 }
Exemplo n.º 2
0
 private function resolveArguments(Step $step)
 {
     return $this->argumentResolver->resolveAll($step->getArguments());
 }