public function _and($arguments) { $lastCalledStepClass = get_class($this->steps[count($this->steps) - 1]); return $this->addStep(new $lastCalledStepClass($arguments)); }
/** * Add another step of the same type as the step that was added before. * * @param array $arguments * @return PHPUnit_Extensions_Story_TestCase */ protected function _and($contextOrOutcome) { return $this->scenario->_and(func_get_args()); }