예제 #1
0
 public function testSscan()
 {
     $this->credis->sadd('set', 'name', 'Jack');
     $this->credis->sadd('set', 'age', '33');
     $iterator = null;
     $result = $this->credis->sscan($iterator, 'set', 'n*');
     $this->assertEquals($iterator, 0);
     $this->assertEquals($result, [0 => 'name']);
 }