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;
    }