/** * Adds step to the node. * * @param StepNode $step Step * * @throws \LogicException if feature is frozen */ public function addStep(StepNode $step) { if ($this->isFrozen()) { throw new \LogicException('Impossible to change scenario/background steps in frozen feature.'); } $step->setParent($this); $this->steps[] = $step; }
/** * Adds step to the node. * * @param Behat\Gherkin\Node\StepNode $step */ public function addStep(StepNode $step) { $step->setParent($this); $this->steps[] = $step; }