/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { G11n::setCurrent('xx-XX'); G11n::setCacheDir(__DIR__ . '/../cache'); G11n::cleanCache(); G11n::addDomainPath('testDomain', __DIR__ . '/../testLangDir'); G11n::loadLanguage('testExtension', 'testDomain'); }
/** * Test method. * * @return void */ public function testDomain3() { G11n::setCurrent('zz-ZZ'); G11n::loadLanguage('testExtension', 'testDomain2'); $this->assertThat(g11n3t('Hello test Z'), $this->equalTo('Hallo Test Z')); }