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')); }
/** * @inheritdoc */ public function clear() { return $this->driver->clear(); }