aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-16 08:00:12 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-16 08:00:12 +0100
commit09c8c58a5c9602a665519586b75ae3e9831367c8 (patch)
tree672476d23cdd89bf64392d1ab03164bdff00e51b
parentb7ec639945a4667508e4a3d1f8ac73da94809b21 (diff)
downloadforums-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.php10
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);
+ }
}