From: Platonides Date: Sun, 20 Feb 2011 00:13:26 +0000 (+0000) Subject: Save and restore $wgHooks in NewParserTest. X-Git-Tag: 1.31.0-rc.0~31866 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=bee16714e0cca1b51edf4c3ddd7574435511f1b0;p=lhc%2Fweb%2Fwiklou.git 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. --- 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();