public function testNonInitException3() { $currentDir = dirname(__FILE__); $backend = new ezcTranslationTsBackend("{$currentDir}/files/translations"); $backend->setOptions(array('format' => '[LOCALE].xml')); try { $backend->next(); self::fail('Expected exception was not thrown'); } catch (ezcTranslationReaderNotInitializedException $e) { self::assertEquals("The reader is not initialized with the initReader() method.", $e->getMessage()); } }