Ejemplo n.º 1
0
 /**
  * Test the err method.
  *
  * @return void
  *
  * @since  1.0
  *
  * @covers Joomla\Console\Command\AbstractCommand::err
  */
 public function testErr()
 {
     $this->instance->getOutput()->setOutput('');
     $this->instance->err('errrr', false);
     $this->assertEquals('errrr', $this->instance->getOutput()->getOutput());
 }
Ejemplo n.º 2
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.
  *
  * @since   1.0
  */
 public function err($text = '', $nl = true)
 {
     $this->command->err($text, $nl);
     return $this;
 }