public function testCreateXmlFileTextNotArrayException() { $this->setExpectedException('Pop\\I18n\\Exception'); $lang = array('src' => 'en', 'output' => 'de', 'name' => 'German', 'native' => 'Deutsch'); $locales = array(array('region' => 'DE', 'name' => 'Germany', 'native' => 'Deutschland', 'text' => '123')); I18n::createXmlFile($lang, $locales, __DIR__ . '/../tmp/new_de.xml'); }