/** * @param BehatEvent\AfterOutlineTested $event */ public function onAfterOutlineTested(BehatEvent\AfterOutlineTested $event) { $scenarioPassed = $event->getTestResult()->isPassed(); if ($scenarioPassed) { $this->passedScenarios[] = $this->currentScenario; $this->currentFeature->addPassedScenario(); } else { $this->failedScenarios[] = $this->currentScenario; $this->currentFeature->addFailedScenario(); } $this->currentScenario->setPassed($event->getTestResult()->isPassed()); $this->currentFeature->addScenario($this->currentScenario); }