writeLineRaw() public method

Writes a line of text to the output stream without formatting.
public writeLineRaw ( string $string, integer $flags = null )
$string string The string to write. A newline is appended.
$flags integer The flags. If one of of {@link IO::VERBOSE}, {@link IO::VERY_VERBOSE} and {@link IO::DEBUG} is passed, the output is only written if the verbosity level is the given level or higher.
Beispiel #1
0
 public function testWriteLineRawDoesNotFormatText()
 {
     $formatter = $this->getMock('Webmozart\\Console\\Api\\Formatter\\Formatter');
     $formatter->expects($this->never())->method('format');
     $this->output->setFormatter($formatter);
     $this->output->writeLineRaw('<tag>text</tag>');
     $this->assertSame('<tag>text</tag>' . PHP_EOL, $this->stream->fetch());
 }
Beispiel #2
0
 /**
  * Writes a line of text to the error output without formatting.
  *
  * @param string $string The string to write. A newline is appended.
  * @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 errorLineRaw($string, $flags = null)
 {
     $this->errorOutput->writeLineRaw($string, $flags);
 }