/** * @group redis-lists */ public function testListRightPop() { $this->assertNull($this->client->rpop('foo')); $this->client->rpush('foo', 'A', 'B', 'C'); $this->assertSame('C', $this->client->rpop('foo')); $this->assertEquals(array('A', 'B'), $this->client->lrange('foo', 0, -1)); }
/** * {@inheritDoc} */ public function rpop($key) { return $this->predis->rpop($key); }