Example #1
0
 /**
  * Test: <increment> a stored value.
  *
  * @author Benjamin Carl <*****@*****.**>
  * @return void
  * @access protected
  * @depends testStoringPhpTypeInteger
  */
 public function testIncrementAStoredValue()
 {
     $value = 523;
     $this->assertTrue($this->client->set($this->key, $value));
     $this->assertEquals($value + 2, $this->client->increment($this->key, 2));
     $this->assertEquals($value + 4, $this->client->incr($this->key, 2));
     $this->assertEquals($value + 4, $this->client->get($this->key));
 }