/** * Test: <decrement> a stored value. * * @author Benjamin Carl <*****@*****.**> * @return void * @access protected * @depends testStoringPhpTypeInteger */ public function testDecrementAStoredValue() { $value = 525; $this->assertTrue($this->client->set($this->key, $value)); $this->assertEquals($value - 2, $this->client->decrement($this->key, 2)); $this->assertEquals($value - 4, $this->client->decr($this->key, 2)); $this->assertEquals($value - 4, $this->client->get($this->key)); }