public function testOpenTranslationFileMissing() { $currentDir = dirname(__FILE__); $backend = new ezcTranslationTsBackend("{$currentDir}/files"); $backend->setOptions(array('format' => '[LOCALE].xml')); try { $xml = $backend->openTranslationFile('nl-nl'); self::fail('Expected exception was not thrown'); } catch (ezcTranslationMissingTranslationFileException $e) { self::assertEquals("The translation file '/files/nl-nl.xml' does not exist.", str_replace($currentDir, '', $e->getMessage())); } }