From: daniel Date: Wed, 29 Aug 2012 08:42:47 +0000 (+0200) Subject: clear magicword cache before testing cleanSig X-Git-Tag: 1.31.0-rc.0~22530^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=a1e971cd0ef6d6d3aab3a724f054bdefa6dff297;p=lhc%2Fweb%2Fwiklou.git clear magicword cache before testing cleanSig Without this, some other synonym for "SUBST" may be used by the parser, because the MagicWord got cached while another content language was active in some other test. Change-Id: I89dc2173f6a27dcd16b0548b06070ac4244fd3cb --- diff --git a/tests/phpunit/includes/ExtraParserTest.php b/tests/phpunit/includes/ExtraParserTest.php index 0413b5a2e6..903a6d2593 100644 --- a/tests/phpunit/includes/ExtraParserTest.php +++ b/tests/phpunit/includes/ExtraParserTest.php @@ -21,6 +21,8 @@ class ExtraParserTest extends MediaWikiTestCase { $this->options = new ParserOptions; $this->options->setTemplateCallback( array( __CLASS__, 'statelessFetchTemplate' ) ); $this->parser = new Parser; + + MagicWord::clearCache(); } // Bug 8689 - Long numeric lines kill the parser