readableSize() public static méthode

Returns a human readable memory size
public static readableSize ( integer $size, string $format = null, integer $round = 3 ) : string
$size integer
$format string The format to display (printf format)
$round integer
Résultat string
Exemple #1
0
 /**
  * @dataProvider sizeProvider
  */
 public function testreadableSize($expected, $size)
 {
     $this->assertEquals($expected, Ubench::readableSize($size, '%.2f%s'));
 }