spec\PhpSpec\Console\ConsoleIOSpec::it_writes_a_message_about_broken_code PHP Method

it_writes_a_message_about_broken_code() public method

public it_writes_a_message_about_broken_code ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    function it_writes_a_message_about_broken_code(OutputInterface $output)
    {
        $message = 'Error message';
        $output->writeln('<broken-bg>                                                            </broken-bg>')->shouldBeCalledTimes(2);
        $output->writeln('<broken-bg>Error message                                               </broken-bg>')->shouldBeCalled();
        $output->writeln('')->shouldBeCalled();
        $this->writeBrokenCodeBlock($message);
    }