Merge remote-tracking branch 'github/pr/639' into main

This commit is contained in:
Daniele Alessandri
2020-08-18 16:03:10 +02:00
177 changed files with 1649 additions and 1043 deletions
@@ -26,7 +26,7 @@ class ProtocolProcessorTest extends PredisTestCase
$serialized = "*1\r\n$4\r\nPING\r\n";
$protocol = new ProtocolProcessor();
$command = $this->getMock('Predis\Command\CommandInterface');
$command = $this->getMockBuilder('Predis\Command\CommandInterface')->getMock();
$command
->expects($this->once())
->method('getId')
@@ -100,11 +100,12 @@ class ProtocolProcessorTest extends PredisTestCase
/**
* @group disconnected
* @expectedException \Predis\Protocol\ProtocolException
* @expectedExceptionMessage Unknown response prefix: '!' [tcp://127.0.0.1:6379]
*/
public function testUnknownResponsePrefix()
{
$this->expectException('Predis\Protocol\ProtocolException');
$this->expectExceptionMessage("Unknown response prefix: '!' [tcp://127.0.0.1:6379]");
$protocol = new ProtocolProcessor();
$connection = $this->getMockConnectionOfType('Predis\Connection\CompositeConnectionInterface', 'tcp://127.0.0.1:6379');