wiki.techinc.nl/tests/phpunit/includes/search
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
..
ParserOutputSearchDataExtractorTest.php Extract ParserOutput search index data fields from WikiTextContentHandler 2016-08-19 09:26:17 -04:00
SearchEnginePrefixTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SearchEngineTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
SearchNearMatcherTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SearchNearMatchResultSetTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
SearchResultSetTest.php Add faux SearchResult and SearchResultSet 2019-10-07 16:35:58 +02:00
SearchResultTraitTest.php Add SearchResultTrait 2019-08-20 18:24:44 +02:00