NOTE THAT THIS COMMIT REVEALS FAILING PARSER TESTS WHEN THEY ARE RUN IN PHPUnit....
authorMark A. Hershberger <mah@users.mediawiki.org>
Mon, 11 Oct 2010 22:50:06 +0000 (22:50 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Mon, 11 Oct 2010 22:50:06 +0000 (22:50 +0000)
commitd42e3ed23bd553458ef19b4b3c254f46abb87c11
tree1bf2a2cc4bc53109b9876644ceeb871221a1894b
parent886452b84e6f94e0f8055197a4d4f77363b62e8d
NOTE THAT THIS COMMIT REVEALS FAILING PARSER TESTS WHEN THEY ARE RUN IN PHPUnit. THE PHPUnit HARNESS NEEDS TO BE FIXED IN THIS CASE. Running parser tests by the traditional “php parserTests.php” verified to work without failures.
Committing this to get the parser tests running under PHPUnit on the whole.  I expect to find fixes for the PHPUnit harness shortly.

* Construct ParserOptions with a user in ExtraParserTest and set up wgLang if it gets set to null — which *was* happening PHPUnit. Note that this probably shows a bug that I wasn't able to track down.
* Adjust phpunit tests so that they execute and report Parser test failures properly.  Attempt to make parser test titles the test titles PHPUnit sees.
* Add E_STRICT reporting to PHPUnit testing.
* Provide PHPUnitParserTest as an exension of ParserTest to handle necessary PHPUnit calls for running parser tests under PHPUnit.
* Use dirname() instead of relative paths (i.e. “..”) where SearchEngineTest.php looks for bootstrap.php.
* Sprinkle teardownGlobals() in exit points for teardownDatabase()
* Make ParserTest::chomp() static.
maintenance/tests/parser/parserTest.inc
maintenance/tests/phpunit/bootstrap.php
maintenance/tests/phpunit/includes/ExtraParserTest.php
maintenance/tests/phpunit/includes/parser/MediaWikiParserTest.php
maintenance/tests/phpunit/includes/parser/ParserHelpers.php
maintenance/tests/phpunit/includes/search/SearchEngineTest.php
maintenance/tests/phpunit/suite.xml
maintenance/tests/testHelpers.inc