Example #1
0
 /**
  * Test: Add a key value pair.
  *
  * @author Benjamin Carl <*****@*****.**>
  * @return void
  * @access protected
  */
 public function testAddAKeyValuePair()
 {
     // Should here return TRUE cause key does not exist
     $this->assertTrue($this->client->add($this->key, $this->value));
     $this->assertEquals($this->value, $this->client->get($this->key));
     // Should now return FALSE cause key already exists
     $this->assertFalse($this->client->add($this->key, $this->value));
 }