Exemple #1
0
 public function testGetCapacity()
 {
     $capacity = $this->_storage->getCapacity();
     $this->assertArrayHasKey('total', $capacity);
     $this->assertInternalType('numeric', $capacity['total']);
     $this->assertArrayHasKey('free', $capacity);
     $this->assertInternalType('numeric', $capacity['free']);
     $this->assertGreaterThanOrEqual($capacity['free'], $capacity['total'], "The total storage space must be greater or equal than the free space");
 }