/** * Write a string to standard error output. * * @param string $text The text to display. * @param boolean $nl True (default) to append a new line at the end of the output string. * * @return Command Instance of $this to allow chaining. */ public function err($text = '', $nl = true) { $this->command->err($text, $nl); return $this; }
/** * Test the err method. * * @return void * * @since 2.0 * * @covers Windwalker\Console\Command\AbstractCommand::err */ public function testErr() { $this->instance->getIO()->outputStream = ''; $this->instance->err('errrr', false); $this->assertEquals('errrr', $this->instance->getIO()->getTestOutput()); }
/** * err * * @param string $msg * * @return $this */ public function err($msg = '') { $this->command->err($msg); return $this; }