public function setup()
 {
     if (!function_exists('phpiredis_connect')) {
         $this->markTestSkipped('Skipping test because phpiredis is not installed');
     }
     parent::setUp();
 }
 public function setUp()
 {
     if (!function_exists('phpiredis_connect')) {
         $this->markTestSkipped('phpiredis is needed to test the FailoverWrapper');
     }
     $this->time = new MockTime();
     parent::setUp();
 }
Example #3
0
 public function testConnectionError()
 {
     try {
         parent::testConnectionError();
         $this->fail('Getting from a non connected redis should throw a ConnectionError');
     } catch (\RedisException $e) {
         // everything is fine here
     }
 }
 public function setUp()
 {
     $this->time = new MockTime();
     parent::setUp();
 }
 public function testRandomkey()
 {
     // we insert a bunchof keys to make sure we get something
     $this->redis->set('testRandomKey1234567', 'abc');
     $this->redis->set('testRandomKey1237890', 'abc');
     $this->redis->set('testRandomKey4356790', 'abc');
     parent::testRandomkey();
     $this->redis->flushdb();
 }
 public function testSdiffstore()
 {
     BaseRedisClientTest::testSdiffstore();
 }