/** * Test setting the score in a sorted set */ public function testZscore() { $this->redis->del('testZscore'); $score = $this->redis->zscore('testZscore', 'one'); $this->assertInternalType('bool', $score); $this->assertFalse($score); $this->assertEquals(1, $this->redis->zadd('testZscore', 1, 'one')); $score = $this->redis->zscore('testZscore', 'one'); $this->assertInternalType('float', $score); $this->assertEquals(1, $score); }