wiki.techinc.nl/tests/phpunit/includes/config
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
..
ConfigFactoryTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
EtcdConfigTest.php tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
GlobalVarConfigTest.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
HashConfigTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
MultiConfigTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ServiceOptionsTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00