public function testCreateXmlFile()
{
$lang = array('src' => 'en', 'output' => 'de', 'name' => 'German', 'native' => 'Deutsch');
$locales = array(array('region' => 'DE', 'name' => 'Germany', 'native' => 'Deutschland', 'text' => array(array('source' => 'This field is required.', 'output' => 'Dieses Feld ist erforderlich.'), array('source' => 'Thursday', 'output' => 'Donnerstag'), array('source' => 'The value length must be between or equal to %1 and %2.', 'output' => 'Der Wert muss zwischen oder gleich %1 und %2 sein.'))), array('region' => 'CH', 'name' => 'Switzerland', 'native' => 'Schweiz', 'text' => array(array('source' => 'This field is required. (CH)', 'output' => 'Dieses Feld ist erforderlich. (CH)'), array('source' => 'Thursday (CH)', 'output' => 'Donnerstag (CH)'), array('source' => 'The value length must be between or equal to %1 and %2. (CH)', 'output' => 'Der Wert muss zwischen oder gleich %1 und %2 sein. (CH)'))));
I18n::createXmlFile($lang, $locales, __DIR__ . '/../tmp/new_de.xml');
$this->assertFileExists(__DIR__ . '/../tmp/new_de.xml');
if (file_exists(__DIR__ . '/../tmp/new_de.xml')) {
unlink(__DIR__ . '/../tmp/new_de.xml');
}
}