示例#1
0
 public function testReadTimeout()
 {
     $this->credis->setReadTimeout(0.0001);
     try {
         $this->credis->save();
         $this->fail('Expected exception (read should timeout since disk sync should take longer than 0.0001 seconds).');
     } catch (CredisException $e) {
     }
     $this->credis->setReadTimeout(10);
 }