src/Behat/Behat/Output/Node/Printer/ListPrinter.php
public function printStepList(OutputPrinter $printer, $intro, $resultCode, array $stepStats)
    {
        if (!count($stepStats)) {
            return;
        }

        $style = $this->resultConverter->convertResultCodeToString($resultCode);
        $intro = $this->translator->trans($intro, array(), 'output');

        $printer->writeln(sprintf('--- {+%s}%s{-%s}' . PHP_EOL, $style, $intro, $style));

        foreach ($stepStats as $num => $stepStat) {
            if ($stepStat instanceof StepStatV2) {
                $this->printStepStat($printer, $num + 1, $stepStat, $style);
            } elseif ($stepStat instanceof StepStat) {
                $this->printStat($printer, $stepStat->getText(), $stepStat->getPath(), $style, $stepStat->getStdOut(), $stepStat->getError());
            }
        }
    }
public function printStepList(OutputPrinter $printer, $intro, $resultCode, array $stepStats)
    {
        if (!count($stepStats)) {
            return;
        }

        $style = $this->resultConverter->convertResultCodeToString($resultCode);
        $intro = $this->translator->trans($intro, array(), 'output');

        $printer->writeln(sprintf('--- {+%s}%s{-%s}' . PHP_EOL, $style, $intro, $style));

        foreach ($stepStats as $num => $stepStat) {
            if ($stepStat instanceof StepStatV2) {
                $this->printStepStat($printer, $num + 1, $stepStat, $style);
            } elseif ($stepStat instanceof StepStat) {
                $this->printStat($printer, $stepStat->getText(), $stepStat->getPath(), $style, $stepStat->getStdOut(), $stepStat->getError());
            }
        }
    }
public function printStepList ( OutputPrinter $ printer , $ intro , $ resultCode , array $ stepStats ) { if ( ! count ( $ stepStats ) ) { return ; } $ style = $ this -> resultConverter -> convertResultCodeToString ( $ resultCode ) ; $ intro = $ this -> translator -> trans ( $ intro , array ( ) , 'output' ) ; $ printer -> writeln ( sprintf ( '--- {+%s}%s{-%s}' . PHP_EOL , $ style , $ intro , $ style ) ) ; foreach ( $ stepStats as $ num => $ stepStat ) { if ( $ stepStat instanceof StepStatV2 ) { $ this -> printStepStat ( $ printer , $ num + 1 , $ stepStat , $ style ) ; } elseif ( $ stepStat instanceof StepStat ) { $ this -> printStat ( $ printer , $ stepStat -> getText ( ) , $ stepStat -> getPath ( ) , $ style , $ stepStat -> getStdOut ( ) , $ stepStat -> getError ( ) ) ; } } }
Prints step list.

@param OutputPrinter $printer
@param string        $intro
@param integer       $resultCode
@param StepStat[]    $stepStats
Prints step list .