public function testUninstallDoesNotUninstallIfConfirmationDenied()
{
$application = $this->getApplication();
$application->add(new UninstallCommand());
$command = $this->getApplication()->find('uninstall');
$commandTester = new CommandTester($command);
$dialog = new DialogHelper();
$dialog->setInputStream($this->getInputStream('no\\n'));
$command->setHelperSet(new HelperSet(array($dialog)));
$commandTester->execute(array('command' => $command->getName(), '--installationFolder' => $this->getTestMagentoRoot()));
$this->assertEquals("Really uninstall ? [n]: ", $commandTester->getDisplay());
//check magento still installed
$this->assertFileExists($this->getTestMagentoRoot() . '/app/etc/local.xml');
}