/**
  * 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;
 }
Example #2
0
 /**
  * Adds step to the node.
  *
  * @param   Behat\Gherkin\Node\StepNode $step
  */
 public function addStep(StepNode $step)
 {
     $step->setParent($this);
     $this->steps[] = $step;
 }