wiki.techinc.nl/tests/phpunit/includes/parser
Antoine Musso 5b9f76aef7 test: detects parent setUp not being called
Our test classes often overload MediaWikiTestCase::setUp() but forget to
call their parent. This patch makes MediaWikiTestCase to flag whenever
its own setUp() is called and then simply assert it got called. Any
class failing the assertion is missing a call to its parent setup which
is easily fixed by adding: parent::setUp().

It would be nice to find a similar trick for tearDown().

Change-Id: Ia2afed6052eb3863d6c8e68c551cf03b33bb4be9
2012-12-05 16:44:41 +01:00
..
MagicVariableTest.php (bug 35204) set wgLanguageCode in unit tests 2012-11-17 09:53:34 +01:00
MediaWikiParserTest.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
NewParserTest.php test: detects parent setUp not being called 2012-12-05 16:44:41 +01:00
ParserMethodsTest.php Clean and repair many phpunit tests (+ fix implied configuration) 2012-10-09 03:01:51 +02:00
ParserOutputTest.php (bug 32951) Do not register absolute internal externals 2012-10-03 23:15:38 +00:00
ParserPreloadTest.php Use ParserOptions::newFromUserAndLang in tests 2012-10-24 15:59:30 +02:00
PreprocessorTest.php Use ParserOptions::newFromUserAndLang in tests 2012-10-24 15:59:30 +02:00
TagHooksTest.php Define $wgAlwaysUseTidy to false where needed in unit tests 2012-11-07 23:08:56 +01:00