wiki.techinc.nl/tests/phpunit/includes/parser
Thiemo Kreuz 9c57ea2b7f Replace complicated assertions with assertIsString() and such
This patch tries to make assertions in tests more readable by using more
self-documenting assertions as provided by modern PHPUnit versions. Among
a few others, these two main changes are done:

* I found a lot of assertions with the expected value being the *second*
parameter. I did not changed all of them. Only some that can be replaced
with assertNull() and such.

* I try to replace all `assertTrue( is_…() )` with dedicated assertions.

Change-Id: I1fc72188fbd0edacf13886e7f9a9eacbd85f13c2
2020-01-28 19:17:58 +00:00
..
CoreParserFunctionsTest.php Replace some oldskool @see with @inheritDoc 2019-11-08 18:00:27 +00:00
MagicVariableTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ParserFactoryIntegrationTest.php Introduce MovePageFactory 2019-08-19 20:25:31 +03:00
ParserFactoryTest.php phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
ParserMethodsTest.php Fixes for PHPUnit 8 compat in DB suite 2019-12-15 00:27:54 +00:00
ParserOptionsTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
ParserOutputTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
ParserPreloadTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00
ParserTest.php Manual fix of the remaining assertInternalType & Co. 2019-12-15 00:20:10 +00:00
PreprocessorTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00
SanitizerTest.php Remove Sanitizer::attributeWhitelist()/setupAttributeWhitelist() 2020-01-25 13:06:19 -05:00
StripStateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
TagHooksTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00