Finally commit the testing stuff I have been with this week. Could be considered...
authorPlatonides <platonides@users.mediawiki.org>
Sat, 26 Feb 2011 21:49:42 +0000 (21:49 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 26 Feb 2011 21:49:42 +0000 (21:49 +0000)
commit2e33fb3ff667d1b774fd3551b6dc4380665adb49
treec9f925fca17368b6d3dbd804a8884ed64d1b88b2
parentddce6ca9475bdd396153dc9b36fd078cb73ce558
Finally commit the testing stuff I have been with this week. Could be considered a continuation of r79411.
Mixture of the NewParserTests.php with old code present in MediaWikiParserTest.php, reverting r79184 (revert of a revert...) and even eval().
Using the iterator as dataProvider, but defering the insertion of articles, as the dataprovider is processed on load, before switching dbs.
Each parser test appear now as a phpunit test. This means that by adding 683 tests (partly from extensions) we now surpass two thousand tests.
The downside of that is that they become painfully slow.
Initialise $wgHooks to $wgHooks, not to array() (r82499) as otherwise we lose ParserFirstCallInit registrations.
There's no attempt to support extensions registering to $wgParser instead of using ParserFirstCallInit properly (Cite falls in this category).
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/parser/MediaWikiParserTest.php
tests/phpunit/includes/parser/NewParserHelpers.php
tests/phpunit/includes/parser/NewParserTest.php