MediaWiki REL1_30
MediaWikiLangTestCase.php
Go to the documentation of this file.
1<?php
2
7 protected function setUp() {
9
10 if ( $wgLanguageCode != $wgContLang->getCode() ) {
11 throw new MWException( "Error in MediaWikiLangTestCase::setUp(): " .
12 "\$wgLanguageCode ('$wgLanguageCode') is different from " .
13 "\$wgContLang->getCode() (" . $wgContLang->getCode() . ")" );
14 }
15
16 parent::setUp();
17
18 $this->setUserLang( 'en' );
19 // For mainpage to be 'Main Page'
20 $this->setContentLang( 'en' );
21
22 MessageCache::singleton()->disable();
23 }
24}
$wgLanguageCode
Site language code.
MediaWiki exception.
Base class that store and restore the Language objects.
static singleton()
Get the signleton instance of this class.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the local content language as $wgContLang
Definition design.txt:57