Call RequestContext::resetMain() so that any subsequent call to getMain() and getLanguage() is aware of the latest state as set up by the setUp() and setupGlobals() methods. The MediaWikiTestCase class for PHPUnit did this already, but the parserTest suite and UploadFromUrlTestSuite didn't yet. Change-Id: I6481176228944004091078704d0346c8f3fc0cf1 |
||
|---|---|---|
| .. | ||
| preprocess | ||
| extraParserTests.txt | ||
| parserTest.inc | ||
| ParserTestResult.php | ||
| parserTests.txt | ||
| parserTestsParserHook.php | ||
| README | ||
Parser tests are run using our PHPUnit test suite in tests/phpunit: $ cd tests/phpunit ./phpunit.php --group Parser You can optionally filter by title using --regex. I.e. : ./phpunit.php --group Parser --regex="Bug 6200"