clear magicword cache before testing cleanSig
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 29 Aug 2012 08:42:47 +0000 (10:42 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Wed, 29 Aug 2012 10:31:24 +0000 (12:31 +0200)
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

index 0413b5a..903a6d2 100644 (file)
@@ -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