Index: trunk/phase3/tests/phpunit/MediaWikiLangTestCase.php |
— | — | @@ -9,24 +9,24 @@ |
10 | 10 | |
11 | 11 | public function setUp() { |
12 | 12 | global $wgLanguageCode, $wgLang, $wgContLang; |
13 | | - |
| 13 | + |
14 | 14 | self::$oldLang = $wgLang; |
15 | 15 | self::$oldContLang = $wgContLang; |
16 | | - |
| 16 | + |
17 | 17 | if( $wgLanguageCode != $wgContLang->getCode() ) die("nooo!"); |
18 | | - |
| 18 | + |
19 | 19 | $wgLanguageCode = 'en'; # For mainpage to be 'Main Page' |
20 | 20 | |
21 | 21 | $wgContLang = $wgLang = Language::factory( $wgLanguageCode ); |
22 | 22 | MessageCache::singleton()->disable(); |
23 | 23 | } |
24 | | - |
| 24 | + |
25 | 25 | public function tearDown() { |
26 | 26 | global $wgContLang, $wgLang, $wgLanguageCode; |
27 | 27 | $wgLang = self::$oldLang; |
28 | | - |
| 28 | + |
29 | 29 | $wgContLang = self::$oldContLang; |
30 | 30 | $wgLanguageCode = $wgContLang->getCode(); |
31 | 31 | } |
32 | | - |
| 32 | + |
33 | 33 | } |