Пример #1
0
 public function preload()
 {
     $this->getMetadata()->setGroups($this->featureNode->getTags());
     $this->getMetadata()->setGroups($this->scenarioNode->getTags());
     $this->scenario->setMetaStep(null);
     if ($background = $this->featureNode->getBackground()) {
         foreach ($background->getSteps() as $step) {
             $this->validateStep($step);
         }
     }
     foreach ($this->scenarioNode->getSteps() as $step) {
         $this->validateStep($step);
     }
     if ($this->getMetadata()->getIncomplete()) {
         $this->getMetadata()->setIncomplete($this->getMetadata()->getIncomplete() . "\nRun gherkin:snippets to define missing steps");
     }
 }