public handle ( Predis\Connection\CompositeConnectionInterface $connection, $payload ) | ||
$connection | Predis\Connection\CompositeConnectionInterface |
/** * @group disconnected * @expectedException \Predis\Protocol\ProtocolException * @expectedExceptionMessage Cannot parse 'invalid' as a valid length for a bulk response. */ public function testInvalidLength() { $handler = new Handler\BulkResponse(); $connection = $this->getMock('Predis\\Connection\\CompositeConnectionInterface'); $connection->expects($this->never())->method('readLine'); $connection->expects($this->never())->method('readBuffer'); $handler->handle($connection, 'invalid'); }