src/Behat/Behat/Output/Node/EventListener/Statistics/StepStatsListener.php
private function getStepPath(AfterStepTested $event, Exception $exception = null)
    {
        $path = sprintf('%s:%d', $this->currentFeaturePath, $event->getStep()->getLine());

        if ($exception && $exception instanceof PendingException) {
            $path = $event->getTestResult()->getStepDefinition()->getPath();
        }

        return $path;
    }
private function getStepPath(AfterStepTested $event, Exception $exception = null)
    {
        $path = sprintf('%s:%d', $this->currentFeaturePath, $event->getStep()->getLine());

        if ($exception && $exception instanceof PendingException) {
            $path = $event->getTestResult()->getStepDefinition()->getPath();
        }

        return $path;
    }
private function getStepPath ( AfterStepTested $ event , Exception $ exception = null ) { $ path = sprintf ( '%s:%d' , $ this -> currentFeaturePath , $ event -> getStep ( ) -> getLine ( ) ) ; if ( $ exception && $ exception instanceof PendingException ) { $ path = $ event -> getTestResult ( ) -> getStepDefinition ( ) -> getPath ( ) ; } return $ path ; }
Gets step path from the AFTER test event and exception.

@param AfterStepTested $event
@param null|Exception  $exception

@return string
Gets step path from the AFTER test event and exception .