wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Timo Tijhof 4938038175 tests: Remove use of wfRandomString() for test fixtures
This reduces confidence in the test. There is no guruantee that
it won't return the same value twice during the duration of a full
PHPUnit run of all test suites, whether twice in a row or 20 minutes
apart.

For a test that needs a string of any kind, use an explicit, consinstent
and cheap literal value.

For a test that specifically needs some kind of uniqueness compared to
something else within the same test case, do so explicitly.

Tests that require something globally unique (for some undefined/vague
definition of "global") were not found, and should not exist anyway.

Also, in libs/objectcache tests, fix order of parameters in some
assertions (expected first, then actual), and use assertFalse/assertSame
instead of assertEqual for cases where false is expected to remove
tolerance of other loosely equal values.

Change-Id: Ifc60e88178da471330b94bfbf12e2731d2efc77d
2019-05-06 17:22:03 +00:00
..
GlobalTest.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
GlobalWithDBTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
README
wfAppendQueryTest.php Support hash fragments in wfAppendQuery() 2016-05-02 19:18:24 -07:00
wfArrayPlus2dTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfAssembleUrlTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfBaseNameTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfEscapeShellArgTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
WfExpandUrlTest.php GlobalFunctions: Enable patch-coverage for wfExpandUrl test 2018-07-25 18:25:27 +01:00
wfGetCallerTest.php Use the frame 'type' in wfFormatStackFrame, like MWExceptionHandler::prettyPrintTrace 2015-10-14 16:40:02 +01:00
wfParseUrlTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfRemoveDotSegmentsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfShellExecTest.php tests: Replace Bugddddd with Tddddd in test names, test strings 2018-08-20 21:27:20 +00:00
wfShorthandToIntegerTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfStringToBoolTest.php Expose string->bool conversion as function 2017-11-15 06:57:40 +00:00
wfThumbIsStandardTest.php Remove test code that depends on extension 2017-08-13 12:04:37 -04:00
wfTimestampTest.php build: Updating mediawiki/mediawiki-codesniffer to 0.12.0 2017-09-10 21:11:37 +02:00
wfUrlencodeTest.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00

This directory hold tests for includes/GlobalFunctions.php file
which is a pile of functions.