wiki.techinc.nl/tests/phpunit/includes/jobqueue
Kevin Israel d2ffc38ff8 tests: Set serialize_precision=-1 in TestSetup
Starting in PHP 7.1, this is now the default[1][2], and results in the
"shortest string that yields d when read in and rounded to nearest."[3]

As such, it would generally be the best choice for tests. The existing
value of 17 has been used only because it was the default at the time
(October 2015, see commit 71443707ad), and -1 for "dtoa mode 0"
simply was not an option yet.

[1]: https://wiki.php.net/rfc/precise_float_value
[2]: https://www.php.net/manual/en/migration71.other-changes.php#migration71.other-changes.ini-file-handling
[3]: https://github.com/php/php-src/blob/php-8.1.13/Zend/zend_strtod.c#L3713-L3714

Change-Id: I95c3c36c90be5aa0af22c3c77ce67641b81786d7
2022-12-14 23:18:13 -05:00
..
jobs Fix casing of class and function name usages 2022-12-04 19:09:30 +00:00
JobQueueMemoryTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-07-06 00:44:00 +02:00
JobQueueTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
JobRunnerTest.php Revert "Reorg: Move some of request related classes to MediaWiki/Request" 2022-10-27 13:14:16 +00:00
JobTest.php tests: Set serialize_precision=-1 in TestSetup 2022-12-14 23:18:13 -05:00
RefreshLinksPartitionTest.php build: Updating dependencies 2022-10-07 21:09:37 +03:00