public function writeCommand(Predis\ICommand $command) { parent::writeCommand($command); $this->storeDebug($command, '->'); }
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)); }