src/Behat/Behat/Output/Node/Printer/ListPrinter.php
public function printScenariosList(OutputPrinter $printer, $intro, $resultCode, array $scenarioStats)
    {
        if (!count($scenarioStats)) {
            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 ($scenarioStats as $stat) {
            $path = $this->relativizePaths((string) $stat);
            $printer->writeln(sprintf('    {+%s}%s{-%s}', $style, $path, $style));
        }

        $printer->writeln();
    }
public function printScenariosList(OutputPrinter $printer, $intro, $resultCode, array $scenarioStats)
    {
        if (!count($scenarioStats)) {
            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 ($scenarioStats as $stat) {
            $path = $this->relativizePaths((string) $stat);
            $printer->writeln(sprintf('    {+%s}%s{-%s}', $style, $path, $style));
        }

        $printer->writeln();
    }
public function printScenariosList ( OutputPrinter $ printer , $ intro , $ resultCode , array $ scenarioStats ) { if ( ! count ( $ scenarioStats ) ) { 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 ( $ scenarioStats as $ stat ) { $ path = $ this -> relativizePaths ( ( string ) $ stat ) ; $ printer -> writeln ( sprintf ( '    {+%s}%s{-%s}' , $ style , $ path , $ style ) ) ; } $ printer -> writeln ( ) ; }
Prints scenarios list.

@param OutputPrinter  $printer
@param string         $intro
@param integer        $resultCode
@param ScenarioStat[] $scenarioStats
Prints scenarios list .