Ejemplo n.º 1
0
 public function testSetGetBytes()
 {
     $stats = new Stats();
     $this->assertEquals('0 bytes', $stats->getBytes());
     $stats->setBytes(1099);
     $this->assertEquals('1 Kb', $stats->getBytes());
     $this->assertEquals(1099, $stats->getRawBytes());
 }