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

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

        $printer->writeln(sprintf('--- {+%s}%s{-%s}' . PHP_EOL, $style, $intro, $style));
        foreach ($failedHookStats as $hookStat) {
            $this->printHookStat($printer, $hookStat, $style);
        }
    }
public function printFailedHooksList(OutputPrinter $printer, $intro, array $failedHookStats)
    {
        if (!count($failedHookStats)) {
            return;
        }

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

        $printer->writeln(sprintf('--- {+%s}%s{-%s}' . PHP_EOL, $style, $intro, $style));
        foreach ($failedHookStats as $hookStat) {
            $this->printHookStat($printer, $hookStat, $style);
        }
    }
public function printFailedHooksList ( OutputPrinter $ printer , $ intro , array $ failedHookStats ) { if ( ! count ( $ failedHookStats ) ) { return ; } $ style = $ this -> resultConverter -> convertResultCodeToString ( TestResult :: FAILED ) ; $ intro = $ this -> translator -> trans ( $ intro , array ( ) , 'output' ) ; $ printer -> writeln ( sprintf ( '--- {+%s}%s{-%s}' . PHP_EOL , $ style , $ intro , $ style ) ) ; foreach ( $ failedHookStats as $ hookStat ) { $ this -> printHookStat ( $ printer , $ hookStat , $ style ) ; } }
Prints failed hooks list.

@param OutputPrinter $printer
@param string        $intro
@param HookStat[]    $failedHookStats
Prints failed hooks list .