1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 22:58:10 +01:00

[ticket/11192] Also test strings, e.g. sums returned by the database.

PHPBB3-11192
This commit is contained in:
Andreas Fischer 2012-11-16 08:00:12 +01:00
parent b7ec639945
commit 09c8c58a5c

View File

@ -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);
}
}