Beispiel #1
0
 function testConnection_LazyConnect()
 {
     $cmd = \Predis\RedisServerProfile::getDefault()->createCommand('ping');
     $connection = new \Predis\TcpConnection(RC::getConnectionParameters());
     $this->assertFalse($connection->isConnected());
     $connection->writeCommand($cmd);
     $this->assertTrue($connection->isConnected());
     $this->assertTrue($connection->readResponse($cmd));
 }