wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Max Semenik 2a21e99633 GlobalFunctions: Fix wfPercent() with negative accuracy
Format strings like "%.-1f" have never been valid, however
while previously it would have resulted in output being "1f",
in PHP 8 it's an exception. The existing unit test failed because
(float)"1f" evaluates to 1, which was rounded down to an expected 0.
Adding another test case to make sure it can return anything other
than "0%" on PHP 7.

While I'm at it, fix wrong phpdoc and add parameter types to this
function.

Bug: T248925
Change-Id: I018bc17a563c58535f6c84644d707251ab19cd0a
2020-05-04 18:48:08 +03:00
..
GlobalTest.php GlobalFunctions: Fix wfPercent() with negative accuracy 2020-05-04 18:48:08 +03:00
GlobalWithDBTest.php Use MediaWikiServices::getMessageCache 2020-03-14 14:25:03 +01:00
README
WfExpandUrlTest.php GlobalFunctions: Enable patch-coverage for wfExpandUrl test 2018-07-25 18:25:27 +01:00
wfParseUrlTest.php Tests for an old PHP bug in parse_url 2019-12-13 11:24:52 -05:00
wfShellExecTest.php Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
wfThumbIsStandardTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00

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