function it_should_write_messages(OutputInterface $output) { $output->write('test', true)->shouldBeCalled(); $this->write('test'); }