public function testInsertBefore() { $this->rediska->appendToList('test', 'aaa'); $this->rediska->appendToList('test', 'bbb'); $reply = $this->list->insertBefore('aaa', 'ccc'); $this->assertEquals(3, $reply); $reply = $this->rediska->getList('test'); $this->assertEquals(array('ccc', 'aaa', 'bbb'), $reply); }