1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-07 08:05:25 +02:00

[ticket/11192] Merge dataProvider arrays because the test is the same now.

PHPBB3-11192
This commit is contained in:
Andreas Fischer 2012-11-16 16:20:55 +01:00
parent efd6f1df63
commit 8851f9589a

@ -34,12 +34,8 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
array(1023, '1023 BYTES'),
array(1025, '1 KIB'),
array(1048575, '1024 KIB'),
);
}
public function get_formatted_filesize_test_data_string()
{
return array(
// String values
// exact powers of 2
array('1', '1 BYTES'),
array('1024', '1 KIB'),
@ -72,14 +68,4 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
$this->assertEquals($expected, $output);
}
/**
* @dataProvider get_formatted_filesize_test_data_string
*/
public function test_get_formatted_filesize_string($input, $expected)
{
$output = get_formatted_filesize($input);
$this->assertEquals($expected, $output);
}
}