src/Behat/Behat/Output/Node/EventListener/Statistics/StepStatsListener.php
private function captureScenarioOnBeforeFeatureEvent(Event $event)
    {
        if (!$event instanceof BeforeScenarioTested) {
            return;
        }

        $this->scenarioTitle = sprintf('%s: %s', $event->getScenario()->getKeyword(), $event->getScenario()->getTitle());
        $this->scenarioPath = sprintf('%s:%s', $this->currentFeaturePath, $event->getScenario()->getLine());
    }
private function captureScenarioOnBeforeFeatureEvent(Event $event)
    {
        if (!$event instanceof BeforeScenarioTested) {
            return;
        }

        $this->scenarioTitle = sprintf('%s: %s', $event->getScenario()->getKeyword(), $event->getScenario()->getTitle());
        $this->scenarioPath = sprintf('%s:%s', $this->currentFeaturePath, $event->getScenario()->getLine());
    }
private function captureScenarioOnBeforeFeatureEvent ( Event $ event ) { if ( ! $ event instanceof BeforeScenarioTested ) { return ; } $ this -> scenarioTitle = sprintf ( '%s: %s' , $ event -> getScenario ( ) -> getKeyword ( ) , $ event -> getScenario ( ) -> getTitle ( ) ) ; $ this -> scenarioPath = sprintf ( '%s:%s' , $ this -> currentFeaturePath , $ event -> getScenario ( ) -> getLine ( ) ) ; }
Captures current scenario title and path on scenario BEFORE event.

@param Event $event
Captures current scenario title and path on scenario BEFORE event .