From a1e971cd0ef6d6d3aab3a724f054bdefa6dff297 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 29 Aug 2012 10:42:47 +0200 Subject: [PATCH] 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 --- tests/phpunit/includes/ExtraParserTest.php | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.20.1