r70986 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70985‎ | r70986 | r70987 >
Date:20:36, 12 August 2010
Author:platonides
Status:ok
Tags:
Comment:
Allow running this standalone as
./phpunit test MediaWikiParserTest.php
Modified paths:
  • /trunk/phase3/maintenance/tests/MediaWikiParserTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/MediaWikiParserTest.php
@@ -17,8 +17,9 @@
1818 public function run( PHPUnit_Framework_TestResult $result = null, $filter = false,
1919 array $groups = array(), array $excludeGroups = array(), $processIsolation = false
2020 ) {
21 - global $IP, $wgContLang;
 21+ global $IP, $wgContLang, $wgMemc;
2222 $wgContLang = Language::factory( 'en' );
 23+ $wgMemc = new FakeMemCachedClient;
2324 $this->backend->setupDatabase();
2425
2526 $iter = new TestFileIterator( "$IP/maintenance/parserTests.txt" );

Status & tagging log