mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11192] Also test strings, e.g. sums returned by the database.
PHPBB3-11192
This commit is contained in:
parent
b7ec639945
commit
09c8c58a5c
1 changed files with 10 additions and 0 deletions
|
@ -54,4 +54,14 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
|
|||
|
||||
$this->assertEquals($expected, $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider get_formatted_filesize_test_data
|
||||
*/
|
||||
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