/** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param common_persistence_KeyValuePersistence $persistence */ public function testDel($persistence) { $this->assertTrue($persistence->del('fakeKeyName')); }
/** * removes an entry from the cache * * @access public * @author Jerome Bogaerts, <*****@*****.**> * @param string serial * @return mixed */ public function remove($serial) { return $this->persistence->del($serial); }
/** * Remove the state for this service call * * @param string $userId * @param string $callId * @return boolean */ public function del($userId, $callId) { $key = $this->getSerial($userId, $callId); return $this->persistence->del($key); }
/** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param common_persistence_KeyValuePersistence $persistence */ public function testDel($persistence) { $this->assertTrue($persistence->set('fakeKeyName', 'value')); $this->assertTrue($persistence->exists('fakeKeyName')); $this->assertTrue($persistence->del('fakeKeyName')); $this->assertFalse($persistence->exists('fakeKeyName')); }