Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * @covers \Glue\Storage\Index::delete
  */
 public function testDelete()
 {
     $result = $this->index->delete($this->testData['key']);
     $this->assertNotEquals(false, $result);
     $this->assertInternalType('array', $result);
 }