Пример #1
0
 /**
  * @depends testConnect
  * @author Lionel Lecaque, lionel@taotesting.com
  * @param common_persistence_KeyValuePersistence $persistence
  */
 public function testDel($persistence)
 {
     $this->assertTrue($persistence->del('fakeKeyName'));
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * 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);
 }
Пример #4
0
 /**
  * @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'));
 }