Esempio n. 1
0
 public function testFromArray()
 {
     $reply = $this->set->fromArray(array(123));
     $this->assertTrue($reply);
     $reply = $this->rediska->existsInSet('test', 123);
     $this->assertTrue($reply);
 }
Esempio n. 2
0
 public function testFromArray()
 {
     $reply = $this->set->fromArray(array(3 => 123));
     $this->assertTrue($reply);
     $values = $this->rediska->getSortedSet('test');
     $this->assertTrue(!empty($values));
     $this->assertEquals(123, $values[0]);
 }