Exemplo n.º 1
0
 public function testPrepend()
 {
     $reply = $this->list->prepend(123);
     $this->assertTrue($reply);
     $reply = $this->list->prepend(456);
     $this->assertTrue($reply);
     $values = $this->rediska->getFromList('test', 1);
     $this->assertEquals(123, $values);
 }
Exemplo n.º 2
0
 public function testPrependWithoutCreate()
 {
     $reply = $this->list->prepend(123, false);
     $this->assertEquals(0, $reply);
 }