Example #1
0
 /**
  * @param string $name
  * @return IAttribute
  */
 public function delete($name)
 {
     if ($this->cache) {
         $this->cache->delete($name);
     }
     return $this;
 }
 /**
  *
  * @dataProvider dataProvider
  *
  * @param string   $key
  * @param mixed    $value
  * @param int|null $ttl
  */
 public function testDelete($key, $value, $ttl)
 {
     $this->cache->set($key, $value, $ttl);
     $this->assertNull($this->cache->delete($key));
     $this->assertFalse($this->cache->has($key));
 }
Example #3
0
 /**
  * @dataProvider dataProvider
  */
 public function testDelete()
 {
     $this->assertNull($this->cache->delete('key'));
 }