Пример #1
0
 public function setUp()
 {
     global $wgLang, $wgLanguageCode;
     self::$oldLang = $wgLang;
     $wgLanguageCode = 'en';
     $wgLang = Language::factory($wgLanguageCode);
 }
Пример #2
0
 public function setUp()
 {
     global $wgLang, $wgContLang;
     self::$oldLang = $wgLang;
     $wgLang = Language::factory('en');
     // Hardcode namespaces during test runs,
     // so that html output based on existing namespaces
     // can be properly evaluated.
     self::$oldNamespaces = $wgContLang->getNamespaces();
     $wgContLang->setNamespaces(array(-2 => 'Media', -1 => 'Special', 0 => '', 1 => 'Talk', 2 => 'User', 3 => 'User_talk', 4 => 'MyWiki', 5 => 'MyWiki_Talk', 6 => 'File', 7 => 'File_talk', 8 => 'MediaWiki', 9 => 'MediaWiki_talk', 10 => 'Template', 11 => 'Template_talk', 100 => 'Custom', 101 => 'Custom_talk'));
 }