Exemplo n.º 1
0
 function testLoadLangFile()
 {
     $file = 'lang';
     $oldlocale = Raxan::config('site.locale');
     $oldLocalePth = Raxan::config('locale.path');
     Raxan::config('locale.path', dirname(__FILE__) . '/lang/');
     Raxan::setLocale('en');
     $ok = Raxan::loadLangFile($file);
     $this->ok($ok, 'Language file loaded');
     $title = Raxan::locale('mytitle');
     $this->compare($title, 'My Title', 'Get value from language file');
     Raxan::config('locale.path', $oldLocalePth);
     Raxan::setLocale($oldlocale);
 }