mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/11192] Merge dataProvider arrays because the test is the same now.
PHPBB3-11192
This commit is contained in:
@@ -34,12 +34,8 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
|
|||||||
array(1023, '1023 BYTES'),
|
array(1023, '1023 BYTES'),
|
||||||
array(1025, '1 KIB'),
|
array(1025, '1 KIB'),
|
||||||
array(1048575, '1024 KIB'),
|
array(1048575, '1024 KIB'),
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function get_formatted_filesize_test_data_string()
|
// String values
|
||||||
{
|
|
||||||
return array(
|
|
||||||
// exact powers of 2
|
// exact powers of 2
|
||||||
array('1', '1 BYTES'),
|
array('1', '1 BYTES'),
|
||||||
array('1024', '1 KIB'),
|
array('1024', '1 KIB'),
|
||||||
@@ -72,14 +68,4 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
|
|||||||
|
|
||||||
$this->assertEquals($expected, $output);
|
$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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user