/** * Deletes item from storage * * @param string $name * @return boolean */ public function delete($name) { $key = $this->getKey($name); $result = $this->index->delete($key); if (is_array($result) && count($result) == 3) { return $this->blob->delete($result[0], $result[1]); } return false; }
/** * @covers \Glue\Storage\Blob::delete */ public function testDelete() { $result = $this->blob->delete($this->testData['offset'], $this->testData['length']); $this->assertNotEquals(false, $result); }