mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 05:08:52 +00:00
[ticket/11192] Merge dataProvider arrays because the test is the same now.
PHPBB3-11192
This commit is contained in:
parent
efd6f1df63
commit
8851f9589a
1 changed files with 1 additions and 15 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue