/**
  * @test Recebe novas funções
  * @test
  */
 public function appendCommand()
 {
     $app = new Application();
     $app->appendCommand('foo:bar', 'Test')->setCode(function (InputInterface $input, OutputInterface $output) use($app) {
         $output->writeln('Hello World');
     });
     $command = $app->find('foo:bar');
     $commandTester = new CommandTester($command);
     $commandTester->execute(['command' => $command->getName()]);
     $this->assertSame('Hello World', trim($commandTester->getDisplay()));
 }