summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-04 18:25:41 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-04 18:25:41 -0500
commit630707050755f414ce91faf880fd407a6fe63174 (patch)
tree03318b8ce79c2229e42302b86d2044b01bc09fb2 /tests
parentfe3ac50aca23ed015b7fb523947b468361afa5c8 (diff)
Do not try to format size if 0
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Helper/TextHelperTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/units/Helper/TextHelperTest.php b/tests/units/Helper/TextHelperTest.php
index 5c8a10f6..35ed5a1e 100644
--- a/tests/units/Helper/TextHelperTest.php
+++ b/tests/units/Helper/TextHelperTest.php
@@ -107,6 +107,7 @@ class TextHelperTest extends Base
{
$textHelper = new TextHelper($this->container);
+ $this->assertEquals('0', $textHelper->bytes(0));
$this->assertEquals('1k', $textHelper->bytes(1024));
$this->assertEquals('33.71k', $textHelper->bytes(34520));
}