diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-11-16 08:00:12 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-11-16 08:00:12 +0100 |
commit | 09c8c58a5c9602a665519586b75ae3e9831367c8 (patch) | |
tree | 672476d23cdd89bf64392d1ab03164bdff00e51b | |
parent | b7ec639945a4667508e4a3d1f8ac73da94809b21 (diff) | |
download | forums-09c8c58a5c9602a665519586b75ae3e9831367c8.tar forums-09c8c58a5c9602a665519586b75ae3e9831367c8.tar.gz forums-09c8c58a5c9602a665519586b75ae3e9831367c8.tar.bz2 forums-09c8c58a5c9602a665519586b75ae3e9831367c8.tar.xz forums-09c8c58a5c9602a665519586b75ae3e9831367c8.zip |
[ticket/11192] Also test strings, e.g. sums returned by the database.
PHPBB3-11192
-rw-r--r-- | tests/functions/get_formatted_filesize_test.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functions/get_formatted_filesize_test.php b/tests/functions/get_formatted_filesize_test.php index 802f82d126..85b06b723d 100644 --- a/tests/functions/get_formatted_filesize_test.php +++ b/tests/functions/get_formatted_filesize_test.php @@ -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); + } } |