/** * Test increasing the score of a member in a sorted set */ public function testZincrby() { $this->redis->del('testZincrby'); $this->assertEquals(1, $this->redis->zadd('testZincrby', 1, 'one')); $this->assertEquals(1, $this->redis->zadd('testZincrby', 2, 'two')); $increased = $this->redis->zincrby('testZincrby', 2, 'one'); $this->assertInternalType('float', $increased); $this->assertEquals(3, $increased); $this->assertEquals(array('two' => 2, 'one' => 3), $this->redis->zrange('testZincrby', 0, -1, true)); }