public function scan(&$Iterator, $pattern = null, $count = null) { return $this->__call('scan', array(&$Iterator, $pattern, $count)); }
public function testscan() { $this->credis->set('name', 'Jack'); $this->credis->set('age', '33'); $iterator = null; $result = $this->credis->scan($iterator, 'n*'); $this->assertEquals($iterator, 0); $this->assertEquals($result, ['name']); }