wiki.techinc.nl/tests/parser
Timo Tijhof 60e4f3fd90 tests: Ensure main RequestContext reflects custom $wgLang
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
2016-03-03 01:39:51 +00:00
..
preprocess Replace 'emailpage' with 'emailuser' 2015-08-20 10:49:03 +00:00
extraParserTests.txt
parserTest.inc tests: Ensure main RequestContext reflects custom $wgLang 2016-03-03 01:39:51 +00:00
ParserTestResult.php tests: Clean up file headers 2015-04-01 00:17:12 +01:00
parserTests.txt Sync up with Parsoid parserTests. 2016-02-23 12:24:58 -08:00
parserTestsParserHook.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
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"