public function afterScenario(ScenarioEvent $event)
    {
        $scenario = $event->getScenario();
        $feature = $scenario->getFeature();
        $url = $feature->getFile();
        $issue = $this->jiraService->getIssue($url);

        if ($issue) {
            $this->postComment($issue, $event->getResult(), $scenario->getTitle());
            $this->updateIssue($issue, $event->getResult());
        }
    }
public function afterScenario(ScenarioEvent $event)
    {
        $scenario = $event->getScenario();
        $feature = $scenario->getFeature();
        $url = $feature->getFile();
        $issue = $this->jiraService->getIssue($url);

        if ($issue) {
            $this->postComment($issue, $event->getResult(), $scenario->getTitle());
            $this->updateIssue($issue, $event->getResult());
        }
    }
public function afterScenario ( ScenarioEvent $ event ) { $ scenario = $ event -> getScenario ( ) ; $ feature = $ scenario -> getFeature ( ) ; $ url = $ feature -> getFile ( ) ; $ issue = $ this -> jiraService -> getIssue ( $ url ) ; if ( $ issue ) { $ this -> postComment ( $ issue , $ event -> getResult ( ) , $ scenario -> getTitle ( ) ) ; $ this -> updateIssue ( $ issue , $ event -> getResult ( ) ) ; } }
After Scenario hook

@param ScenarioEvent $event
After Scenario hook