Clear process cache in parser tests
authorOri Livneh <ori@wikimedia.org>
Fri, 25 Mar 2016 20:57:28 +0000 (13:57 -0700)
committerOri.livneh <ori@wikimedia.org>
Fri, 25 Mar 2016 23:11:18 +0000 (23:11 +0000)
Have the parser test set-up code call WANObjectCache::clearProcessCache().
d1c4eafef5 added this to the PHPUnit test set-up code, but not the parser
tests'.

Change-Id: I870c8bae0336afc499224e4c937c6b8d6ab4d457

tests/parser/parserTest.inc

index 15f2dcf..56108c9 100644 (file)
@@ -619,6 +619,7 @@ class ParserTest {
                        $titleText = 'Parser test';
                }
 
+               ObjectCache::getMainWANInstance()->clearProcessCache();
                $local = isset( $opts['local'] );
                $preprocessor = isset( $opts['preprocessor'] ) ? $opts['preprocessor'] : null;
                $parser = $this->getParser( $preprocessor );