Allow running this standalone as
authorPlatonides <platonides@users.mediawiki.org>
Thu, 12 Aug 2010 20:36:00 +0000 (20:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 12 Aug 2010 20:36:00 +0000 (20:36 +0000)
 ./phpunit test MediaWikiParserTest.php

maintenance/tests/MediaWikiParserTest.php

index d109655..121e11a 100644 (file)
@@ -17,8 +17,9 @@ class MediaWikiParserTestSuite extends PHPUnit_Framework_TestSuite {
        public function run( PHPUnit_Framework_TestResult $result = null, $filter = false, 
                array $groups = array(), array $excludeGroups = array(), $processIsolation = false
        ) {
-               global $IP, $wgContLang;
+               global $IP, $wgContLang, $wgMemc;
                $wgContLang = Language::factory( 'en' );
+               $wgMemc = new FakeMemCachedClient;
                $this->backend->setupDatabase();
 
                $iter = new TestFileIterator( "$IP/maintenance/parserTests.txt" );