PopTest\I18n\I18nTest::testCreateXmlFileNoTextException PHP Метод

testCreateXmlFileNoTextException() публичный Метод

    public function testCreateXmlFileNoTextException()
    {
        $this->setExpectedException('Pop\\I18n\\Exception');
        $lang = array('src' => 'en', 'output' => 'de', 'name' => 'German', 'native' => 'Deutsch');
        $locales = array(array('region' => 'DE', 'name' => 'Germany', 'native' => 'Deutschland'), 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');
    }