/**
  * @return Node\Scenario
  */
 protected function createScenario()
 {
     $feature = $this->getMockBuilder(Node\Feature::class)->getMock();
     $feature->expects($this->any())->method('getId')->will($this->returnValue(static::FEATURE_ID));
     $scenario = new Node\Scenario();
     $scenario->setFeature($feature);
     return $scenario;
 }
 /**
  * @param BehatEvent\BeforeScenarioTested $event
  */
 public function onBeforeScenarioTested(BehatEvent\BeforeScenarioTested $event)
 {
     $scenario = new Node\Scenario();
     $scenario->setName($event->getScenario()->getTitle());
     $scenario->setTags($event->getScenario()->getTags());
     $scenario->setLine($event->getScenario()->getLine());
     $scenario->setType($event->getScenario()->getNodeType());
     $scenario->setKeyword($event->getScenario()->getKeyword());
     $scenario->setFeature($this->currentFeature);
     $this->currentScenario = $scenario;
 }