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
README
wfAppendQueryTest.php
wfArrayPlus2dTest.php
wfAssembleUrlTest.php
wfBaseNameTest.php
wfEscapeShellArgTest.php
WfExpandUrlTest.php GlobalFunctions: Enable patch-coverage for wfExpandUrl test 2018-07-25 18:25:27 +01:00
wfGetCallerTest.php
wfParseUrlTest.php
wfRemoveDotSegmentsTest.php
wfShellExecTest.php tests: Replace Bugddddd with Tddddd in test names, test strings 2018-08-20 21:27:20 +00:00
wfShorthandToIntegerTest.php
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.