Ejemplo n.º 1
0
 /**
  * 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');
 }
Ejemplo n.º 2
0
 /**
  * Test method.
  *
  * @expectedException \ElKuKu\G11n\G11nException
  *
  * @return void
  */
 public function testInvalidCacheDir()
 {
     G11n::setCacheDir('INVALID');
 }