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 |
||
|---|---|---|
| .. | ||
| GlobalTest.php | ||
| GlobalWithDBTest.php | ||
| README | ||
| WfExpandUrlTest.php | ||
| wfParseUrlTest.php | ||
| wfShellExecTest.php | ||
| wfThumbIsStandardTest.php | ||
This directory hold tests for includes/GlobalFunctions.php file which is a pile of functions.