ParserTest: clear Language namespaces cache
authorAntoine Musso <hashar@free.fr>
Sun, 25 Mar 2018 13:34:05 +0000 (15:34 +0200)
committerAntoine Musso <hashar@free.fr>
Sun, 25 Mar 2018 13:36:10 +0000 (15:36 +0200)
commitb7d495cf0c1c1066c6506793aabaf1a103bf8715
treeed53813254b49a04d6439aaff94323e70d775525
parent14cb8f992f7f9d1e1b405c200720c53f4e62b8d2
ParserTest: clear Language namespaces cache

The content language object has a cache for namespaces, it might then
not take in account $wgExtraNamespaces set by the parser test suite
which causes unknown namespaces errors.

Ensure the new language object has a clean cache.

Repro:
php phpunit.php --filter '(ParserMethodsTest::testValidCovers|T53680)'

Bug: T190554
Change-Id: I9c4104d7bb3a0c84b60d7e7b4154743cbe58348c
tests/parser/ParserTestRunner.php