Ejemplo n.º 1
0
 /**
  * Test getting a random key
  */
 public function testRandomkey()
 {
     // This is not really deterministic since we can not know which keys are in the database, lets just call it anyway so we can make sure that the command doesnt throw exceptions or anything
     // If we insert a key into the database, randomkey is definetly not null
     $this->redis->set('testRandomkey', 'someValue');
     $this->assertNotNull($this->redis->randomkey());
     $this->redis->del('testRandomkey');
 }