Index: trunk/phase3/tests/phpunit/includes/XmlTest.php |
— | — | @@ -4,17 +4,15 @@ |
5 | 5 | private static $oldLang; |
6 | 6 | |
7 | 7 | public function setUp() { |
8 | | - global $wgLang, $wgLanguageCode; |
| 8 | + global $wgLang; |
9 | 9 | |
10 | 10 | self::$oldLang = $wgLang; |
11 | | - $wgLanguageCode = 'en'; |
12 | | - $wgLang = Language::factory( $wgLanguageCode ); |
| 11 | + $wgLang = Language::factory( 'en' ); |
13 | 12 | } |
14 | 13 | |
15 | 14 | public function tearDown() { |
16 | | - global $wgLang, $wgLanguageCode; |
| 15 | + global $wgLang; |
17 | 16 | $wgLang = self::$oldLang; |
18 | | - $wgLanguageCode = $wgLang->getCode(); |
19 | 17 | } |
20 | 18 | |
21 | 19 | public function testExpandAttributes() { |