public function it_should_cache_deletes()
 {
     $delete = 'delete.txt';
     $this->adapter->delete($delete)->willReturn(true);
     $this->cache->delete($delete)->shouldBeCalled();
     $this->delete($delete)->shouldBe(true);
 }
 /**
  * {@inheritdoc}
  */
 public function delete($path)
 {
     $result = $this->adapter->delete($path);
     if ($result !== false) {
         $this->cache->delete($path);
     }
     return $result;
 }