예제 #1
0
 public function testClear()
 {
     $this->assertTrue($this->driver->set('key1', 1));
     $this->assertTrue($this->driver->set('key2', 2));
     $this->assertTrue($this->driver->clear(), '->clear() should return true on success');
     $this->assertFalse($this->driver->has('key1'));
     $this->assertFalse($this->driver->has('key2'));
 }
예제 #2
0
파일: Cache.php 프로젝트: savritsky/cache
 /**
  * @inheritdoc
  */
 public function has($key)
 {
     return $this->driver->has($key);
 }