aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions')
-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);
+ }
}