3 class wfShorthandToIntegerTest
extends MediaWikiTestCase
{
5 * @dataProvider provideABunchOfShorthands
7 function testWfShorthandToInteger( $input, $output, $description ) {
9 wfShorthandToInteger( $input ),
15 function provideABunchOfShorthands() {
17 array( '', -1, 'Empty string' ),
18 array( ' ', -1, 'String of spaces' ),
19 array( '1G', 1024 * 1024 * 1024, 'One gig uppercased' ),
20 array( '1g', 1024 * 1024 * 1024, 'One gig lowercased' ),