X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FGlobalFunctions%2FwfShorthandToIntegerTest.php;h=40b2e636c91ae96a56127036d3c1ad496a845f59;hb=cefd909f69ecf17b7bab07c623d3b57c92534fff;hp=67284d27c79cf9d593fe9d64b7a0ae76b25f5b81;hpb=f0edb3e368a5fc69218d20f76f1538b68f37db42;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/GlobalFunctions/wfShorthandToIntegerTest.php b/tests/phpunit/includes/GlobalFunctions/wfShorthandToIntegerTest.php index 67284d27c7..40b2e636c9 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfShorthandToIntegerTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfShorthandToIntegerTest.php @@ -17,15 +17,15 @@ class WfShorthandToIntegerTest extends MediaWikiTestCase { } public static function provideABunchOfShorthands() { - return array( - array( '', -1, 'Empty string' ), - array( ' ', -1, 'String of spaces' ), - array( '1G', 1024 * 1024 * 1024, 'One gig uppercased' ), - array( '1g', 1024 * 1024 * 1024, 'One gig lowercased' ), - array( '1M', 1024 * 1024, 'One meg uppercased' ), - array( '1m', 1024 * 1024, 'One meg lowercased' ), - array( '1K', 1024, 'One kb uppercased' ), - array( '1k', 1024, 'One kb lowercased' ), - ); + return [ + [ '', -1, 'Empty string' ], + [ ' ', -1, 'String of spaces' ], + [ '1G', 1024 * 1024 * 1024, 'One gig uppercased' ], + [ '1g', 1024 * 1024 * 1024, 'One gig lowercased' ], + [ '1M', 1024 * 1024, 'One meg uppercased' ], + [ '1m', 1024 * 1024, 'One meg lowercased' ], + [ '1K', 1024, 'One kb uppercased' ], + [ '1k', 1024, 'One kb lowercased' ], + ]; } }