Index: trunk/phase3/maintenance/tests/phpunit/includes/TitlePermissionTest.php |
— | — | @@ -50,11 +50,6 @@ |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | | - function tearDown() { |
55 | | - global $wgContLang, $wgLang; |
56 | | - $wgContLang = $wgLang = null; |
57 | | - } |
58 | | - |
59 | 54 | function setUserPerm( $perm ) { |
60 | 55 | if ( is_array( $perm ) ) { |
61 | 56 | self::$user->mRights = $perm; |
Index: trunk/phase3/maintenance/tests/phpunit/includes/ExtraParserTest.php |
— | — | @@ -15,12 +15,6 @@ |
16 | 16 | $wgMemc = new FakeMemCachedClient; |
17 | 17 | } |
18 | 18 | |
19 | | - function tearDown() { |
20 | | - global $wgMemc; |
21 | | - |
22 | | - $wgMemc = null; |
23 | | - } |
24 | | - |
25 | 19 | // Bug 8689 - Long numeric lines kill the parser |
26 | 20 | function testBug8689() { |
27 | 21 | global $wgLang; |
Index: trunk/phase3/maintenance/tests/phpunit/includes/LanguageConverterTest.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | unset( $wgMemc ); |
23 | 23 | unset( $this->lc ); |
24 | 24 | unset( $this->lang ); |
25 | | - $wgContLang = null; |
| 25 | + $wgContLang = Language::factory( 'en' ); |
26 | 26 | } |
27 | 27 | |
28 | 28 | function testGetPreferredVariantDefaults() { |
Index: trunk/phase3/maintenance/tests/phpunit/includes/search/SearchUpdateTest.php |
— | — | @@ -91,7 +91,6 @@ |
92 | 92 | $wgDBtype = self::$dbtype; |
93 | 93 | $wgLBFactoryConf = self::$factoryconf; |
94 | 94 | $wgDBservers = self::$dbservers; |
95 | | - $wgContLang = null; |
96 | 95 | } |
97 | 96 | |
98 | 97 | function testUpdateText() { |
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiSetup.php |
— | — | @@ -39,11 +39,6 @@ |
40 | 40 | |
41 | 41 | $GLOBALS['wgUser'] = self::$sysopUser->user; |
42 | 42 | } |
43 | | - |
44 | | - function tearDown() { |
45 | | - global $wgMemc; |
46 | | - $wgMemc = null; |
47 | | - } |
48 | 43 | } |
49 | 44 | |
50 | 45 | class UserWrapper { |
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiUploadTest.php |
— | — | @@ -108,11 +108,6 @@ |
109 | 109 | |
110 | 110 | } |
111 | 111 | |
112 | | - function tearDown() { |
113 | | - global $wgMemc; |
114 | | - $wgMemc = null; |
115 | | - } |
116 | | - |
117 | 112 | protected function doApiRequest( $params, $session = null ) { |
118 | 113 | $_SESSION = isset( $session ) ? $session : array(); |
119 | 114 | |