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