Example #1
0
 /**
  * Test: Prepend a value to an existing one.
  *
  * @author Benjamin Carl <*****@*****.**>
  * @return void
  * @access protected
  */
 public function testPrependAValueToAnExistingOne()
 {
     srand(microtime(true));
     $value = md5(rand(1, 65535));
     $this->assertFalse($this->client->prepend($this->key, $value));
     $this->assertTrue($this->client->set($this->key, $this->value));
     $this->assertTrue($this->client->prepend($this->key, $value));
     $this->assertEquals($value . $this->value, $this->client->get($this->key));
 }