Followup r83140: FakeMemCachedClient -> EmptyBagOStuff in tests
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 3 Mar 2011 12:55:22 +0000 (12:55 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 3 Mar 2011 12:55:22 +0000 (12:55 +0000)
tests/parser/parserTest.inc
tests/phpunit/includes/ExtraParserTest.php
tests/phpunit/includes/LanguageConverterTest.php
tests/phpunit/includes/TitlePermissionTest.php
tests/phpunit/includes/api/ApiSetup.php
tests/phpunit/includes/api/ApiUploadTest.php
tests/phpunit/includes/parser/NewParserTest.php

index 9315422..4011fe6 100644 (file)
@@ -683,7 +683,7 @@ class ParserTest {
                $langObj = Language::factory( $lang );
                $GLOBALS['wgLang'] = $langObj;
                $GLOBALS['wgContLang'] = $langObj;
-               $GLOBALS['wgMemc'] = new FakeMemCachedClient;
+               $GLOBALS['wgMemc'] = new EmptyBagOStuff;
                $GLOBALS['wgOut'] = new OutputPage;
 
                global $wgHooks;
index 94087fa..5bc2221 100644 (file)
@@ -12,7 +12,7 @@ class ExtraParserTest extends MediaWikiTestCase {
 
                $wgShowDBErrorBacktrace = true;
                $wgContLang = new Language( 'en' );
-               $wgMemc = new FakeMemCachedClient;
+               $wgMemc = new EmptyBagOStuff;
                
                $this->options = new ParserOptions;
                $this->options->setTemplateCallback( array( __CLASS__, 'statelessFetchTemplate' ) );
index 3ee39a1..d26db94 100644 (file)
@@ -9,7 +9,7 @@ class LanguageConverterTest extends MediaWikiTestCase {
 
                $wgUser = new User;
                $wgRequest = new FauxRequest( array() );
-               $wgMemc = new FakeMemCachedClient;
+               $wgMemc = new EmptyBagOStuff;
                $wgContLang = Language::factory( 'tg' );
                $this->lang = new LanguageToTest();
                $this->lc = new TestConverter( $this->lang, 'tg',
index befeee8..07c76e5 100644 (file)
@@ -16,7 +16,7 @@ class TitlePermissionTest extends MediaWikiTestCase {
                global $wgLocaltimezone, $wgLocalTZoffset, $wgMemc, $wgContLang, $wgLang;
 
                if(!$wgMemc) {
-                       $wgMemc = new FakeMemCachedClient;
+                       $wgMemc = new EmptyBagOStuff;
                }
                $wgContLang = $wgLang = Language::factory( 'en' );
 
index 4459a88..caa95b9 100644 (file)
@@ -10,7 +10,7 @@ abstract class ApiTestSetup extends MediaWikiTestCase {
 
                self::$apiUrl = $wgServer . wfScript( 'api' );
 
-               $wgMemc = new FakeMemCachedClient;
+               $wgMemc = new EmptyBagOStuff;
                $wgContLang = Language::factory( 'en' );
                $wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' );
                $wgRequest = new FauxRequest( array() );
index c6afde0..e468f66 100644 (file)
@@ -81,7 +81,7 @@ abstract class ApiTestCase extends MediaWikiTestCase {
        function setUp() {
                global $wgContLang, $wgAuth, $wgMemc, $wgRequest, $wgUser;
 
-               $wgMemc = new FakeMemCachedClient();
+               $wgMemc = new EmptyBagOStuff();
                $wgContLang = Language::factory( 'en' );
                $wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' );
                $wgRequest = new FauxRequest( array() );
index 35b7540..311c829 100644 (file)
@@ -298,7 +298,7 @@ class NewParserTest extends MediaWikiTestCase {
                $langObj = Language::factory( $lang );
                $GLOBALS['wgLang'] = $langObj;
                $GLOBALS['wgContLang'] = $langObj;
-               $GLOBALS['wgMemc'] = new FakeMemCachedClient;
+               $GLOBALS['wgMemc'] = new EmptyBagOStuff;
                $GLOBALS['wgOut'] = new OutputPage;
 
                global $wgHooks;