/**
  * Instantiate the controller.
  *
  * @param   Command  $command  The command object.
  */
 public function __construct(Command $command)
 {
     // Setup dependencies.
     $this->app = $command->getApplication() ?: $this->loadApplication();
     $this->input = $this->io = $command->getIO();
     $this->command = $command;
 }
 /**
  * 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());
 }