src/Behat/Behat/Output/Node/Printer/Helper/WidthCalculator.php
public function calculateExampleWidth(ExampleNode $example, $indentation, $subIndentation)
    {
        $length = $this->calculateScenarioHeaderWidth($example, $indentation);

        foreach ($example->getSteps() as $step) {
            $stepLength = $this->calculateStepWidth($step, $indentation + $subIndentation);
            $length = max($length, $stepLength);
        }

        return $length;
    }
public function calculateExampleWidth(ExampleNode $example, $indentation, $subIndentation)
    {
        $length = $this->calculateScenarioHeaderWidth($example, $indentation);

        foreach ($example->getSteps() as $step) {
            $stepLength = $this->calculateStepWidth($step, $indentation + $subIndentation);
            $length = max($length, $stepLength);
        }

        return $length;
    }
public function calculateExampleWidth ( ExampleNode $ example , $ indentation , $ subIndentation ) { $ length = $ this -> calculateScenarioHeaderWidth ( $ example , $ indentation ) ; foreach ( $ example -> getSteps ( ) as $ step ) { $ stepLength = $ this -> calculateStepWidth ( $ step , $ indentation + $ subIndentation ) ; $ length = max ( $ length , $ stepLength ) ; } return $ length ; }
Calculates outline examples width.

@param ExampleNode $example
@param integer     $indentation
@param integer     $subIndentation

@return integer
Calculates outline examples width .