public function testExecute()
{
$application = $this->getApplication();
$application->add(new ConflictsCommand());
$command = $this->getApplication()->find('dev:module:rewrite:conflicts');
/**
* Only stdout
*/
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName()));
$this->assertContains('No rewrite conflicts were found', $commandTester->getDisplay());
/**
* Junit Log without any output
*/
$commandTester = new CommandTester($command);
$result = $commandTester->execute(array('command' => $command->getName(), '--log-junit' => '_output.xml'));
$this->assertEquals(0, $result);
$this->assertEquals('', $commandTester->getDisplay());
$this->assertFileExists('_output.xml');
@unlink('_output.xml');
}