예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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());
 }
예제 #3
0
 /**
  * err
  *
  * @param string $msg
  *
  * @return  $this
  */
 public function err($msg = '')
 {
     $this->command->err($msg);
     return $this;
 }