read() public method

public read ( Predis\Connection\CompositeConnectionInterface $connection )
$connection Predis\Connection\CompositeConnectionInterface
 /**
  * @group disconnected
  * @expectedException \Predis\Protocol\ProtocolException
  * @expectedExceptionMessage Unknown response prefix: '!'.
  */
 public function testUnknownResponsePrefix()
 {
     $protocol = new ProtocolProcessor();
     $connection = $this->getMock('Predis\\Connection\\CompositeConnectionInterface');
     $connection->expects($this->once())->method('readLine')->will($this->returnValue('!'));
     $protocol->read($connection);
 }