14 require_once(dirname(__FILE__) .
'/../common-ui.php');
22 protected function setUp() :
void
40 $this->assertEquals(
"1 GB", $result);
42 $this->assertEquals(
"10 KB", $result);
43 $result =
HumanSize(1024 * (1024 * 99 + 511));
44 $this->assertEquals(
"99.5 MB", $result);
test_HumanSize()
test for HumanSize
HumanSize( $bytes)
Translate a byte number to a proper type, xxx bytes to xxx B/KB/MB/GB/TB/PB.