Skip to content

Commit 334bc47

Browse files
committed
Add tests for smallest, largest integers
1 parent 1245ae5 commit 334bc47

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/FileSizeTest.php

+20
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,24 @@ public function custom_decimal_and_thousands_marks_are_supported()
196196

197197
$this->assertSame($size->asAuto(), '1,15 TB');
198198
}
199+
200+
/**
201+
* @test
202+
*/
203+
public function smallest_integer_is_supported()
204+
{
205+
$size = new FileSize(PHP_INT_MIN);
206+
207+
$this->assertIsNumeric($size->as('YB'));
208+
}
209+
210+
/**
211+
* @test
212+
*/
213+
public function largest_integer_is_supported()
214+
{
215+
$size = new FileSize(PHP_INT_MAX);
216+
217+
$this->assertIsNumeric($size->as('YB'));
218+
}
199219
}

0 commit comments

Comments
 (0)