public function testWriteRawDoesNotFormatText() { $formatter = $this->getMock('Webmozart\\Console\\Api\\Formatter\\Formatter'); $formatter->expects($this->never())->method('format'); $this->output->setFormatter($formatter); $this->output->writeRaw('<tag>text</tag>'); $this->assertSame('<tag>text</tag>', $this->stream->fetch()); }
/** * Writes a string to the error output without formatting. * * @param string $string The string to write. * @param int $flags The flags. One of {@link VERBOSE}, * {@link VERY_VERBOSE} and {@link DEBUG}. * * @throws IOException If writing fails or if the error output is closed. */ public function errorRaw($string, $flags = null) { $this->errorOutput->writeRaw($string, $flags); }