/**
  * Runs another command.
  *
  * @param string $name      Command name.
  * @param array  $arguments Arguments.
  *
  * @return integer
  */
 protected function runOtherCommand($name, array $arguments = array())
 {
     $arguments['command'] = $name;
     $cleanup_command = $this->getApplication()->find($name);
     $input = new ArrayInput($arguments);
     return $cleanup_command->run($input, $this->io->getOutput());
 }
 public function testGetOutput()
 {
     $this->assertSame($this->output->reveal(), $this->io->getOutput());
 }