private function postComment($issue, $result, $title)
    {
        if ($result === StepEvent::PASSED && $this->commentOnPass) {
            $this->jiraService->postComment($issue, sprintf('Scenario "%s" passed', $title));
        } elseif ($result === StepEvent::FAILED && $this->commentOnFail) {
            $this->jiraService->postComment($issue, sprintf('Scenario "%s" failed', $title));
        }
    }
private function postComment($issue, $result, $title)
    {
        if ($result === StepEvent::PASSED && $this->commentOnPass) {
            $this->jiraService->postComment($issue, sprintf('Scenario "%s" passed', $title));
        } elseif ($result === StepEvent::FAILED && $this->commentOnFail) {
            $this->jiraService->postComment($issue, sprintf('Scenario "%s" failed', $title));
        }
    }
private function postComment ( $ issue , $ result , $ title ) { if ( $ result === StepEvent :: PASSED && $ this -> commentOnPass ) { $ this -> jiraService -> postComment ( $ issue , sprintf ( 'Scenario "%s" passed' , $ title ) ) ; } elseif ( $ result === StepEvent :: FAILED && $ this -> commentOnFail ) { $ this -> jiraService -> postComment ( $ issue , sprintf ( 'Scenario "%s" failed' , $ title ) ) ; } }
Post comment in corresponding Jira issue

@param string  $issue  Issue key
@param integer $result Result
@param string  $title  Scenario title
Post comment in corresponding Jira issue