src/Behat/Behat/Output/Node/Printer/Pretty/PrettyPathPrinter.php
public function printStepPath(
        Formatter $formatter,
        Scenario $scenario,
        StepNode $step,
        StepResult $result,
        $indentation
    ) {
        $printer = $formatter->getOutputPrinter();

        if (!$result instanceof DefinedStepResult || !$result->getStepDefinition() || !$formatter->getParameter('paths')) {
            $printer->writeln();

            return;
        }

        $textWidth = $this->widthCalculator->calculateStepWidth($step, $indentation);
        $scenarioWidth = $this->widthCalculator->calculateScenarioWidth($scenario, $indentation - 2, 2);

        $this->printDefinedStepPath($printer, $result, $scenarioWidth, $textWidth);
    }
public function printStepPath(
        Formatter $formatter,
        Scenario $scenario,
        StepNode $step,
        StepResult $result,
        $indentation
    ) {
        $printer = $formatter->getOutputPrinter();

        if (!$result instanceof DefinedStepResult || !$result->getStepDefinition() || !$formatter->getParameter('paths')) {
            $printer->writeln();

            return;
        }

        $textWidth = $this->widthCalculator->calculateStepWidth($step, $indentation);
        $scenarioWidth = $this->widthCalculator->calculateScenarioWidth($scenario, $indentation - 2, 2);

        $this->printDefinedStepPath($printer, $result, $scenarioWidth, $textWidth);
    }
public function printStepPath ( Formatter $ formatter , Scenario $ scenario , StepNode $ step , StepResult $ result , $ indentation ) { $ printer = $ formatter -> getOutputPrinter ( ) ; if ( ! $ result instanceof DefinedStepResult || ! $ result -> getStepDefinition ( ) || ! $ formatter -> getParameter ( 'paths' ) ) { $ printer -> writeln ( ) ; return ; } $ textWidth = $ this -> widthCalculator -> calculateStepWidth ( $ step , $ indentation ) ; $ scenarioWidth = $ this -> widthCalculator -> calculateScenarioWidth ( $ scenario , $ indentation - 2 , 2 ) ; $ this -> printDefinedStepPath ( $ printer , $ result , $ scenarioWidth , $ textWidth ) ; }
Prints step path comment.

@param Formatter  $formatter
@param Scenario   $scenario
@param StepNode   $step
@param StepResult $result
@param integer    $indentation
Prints step path comment .