From bee16714e0cca1b51edf4c3ddd7574435511f1b0 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 20 Feb 2011 00:13:26 +0000 Subject: [PATCH] Save and restore $wgHooks in NewParserTest. ParserGetVariableValueTs hook still being set to ParserTest::getFakeTimestamp was the reason for the crazy failures of MagicVariableTest inside phpunit that I was seeing. --- tests/phpunit/includes/parser/NewParserTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index d9575097d2..b69cd77172 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -56,6 +56,7 @@ class NewParserTest extends MediaWikiTestCase { ); $tmpGlobals['wgEnableParserCache'] = false; + $tmpGlobals['wgHooks'] = array(); $tmpGlobals['wgDeferredUpdateList'] = array(); $tmpGlobals['wgMemc'] = &wfGetMainCache(); $tmpGlobals['messageMemc'] = &wfGetMessageCacheStorage(); -- 2.20.1