public function testInteractiveInputUsesDefaultValuesIfNoValueEntered()
{
$command = $this->getApplication()->find('local-config:generate');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), 'db-host' => 'my_db_host', 'db-user' => 'my_db_user', 'db-pass' => 'my_db_pass', 'db-name' => 'my_db_name', 'encryption-key' => 'key123456789'), array('interactive' => false));
$this->assertFileExists($this->configFile);
$fileContent = \file_get_contents($this->configFile);
$this->assertContains('<host><![CDATA[my_db_host]]></host>', $fileContent);
$this->assertContains('<username><![CDATA[my_db_user]]></username>', $fileContent);
$this->assertContains('<password><![CDATA[my_db_pass]]></password>', $fileContent);
$this->assertContains('<dbname><![CDATA[my_db_name]]></dbname>', $fileContent);
$this->assertContains('<session_save><![CDATA[files]]></session_save>', $fileContent);
$this->assertContains('<frontName><![CDATA[admin]]></frontName>', $fileContent);
$this->assertContains('<key><![CDATA[key123456789]]></key>', $fileContent);
$xml = \simplexml_load_file($this->configFile);
$this->assertNotInternalType('bool', $xml);
}