예제 #1
0
 public function testGetSetConnection()
 {
     $redisBackend = new Backend\Redis();
     $this->assertFalse($redisBackend->getConnection()->getHost(), 'Connection was not reset');
     $redisBackend->setConnection($this->redis);
     $this->assertEquals($this->redis, $redisBackend->getConnection(), 'Connection was not set correctly');
 }