/**
* @group disconnected
*/
public function testConnectionRead()
{
$connection = $this->getMock('Predis\\Connection\\CompositeConnectionInterface');
$reader = $this->getMock('Predis\\Protocol\\ResponseReaderInterface');
$protocol = new CompositeProtocolProcessor(null, $reader);
$reader->expects($this->once())->method('read')->with($connection)->will($this->returnValue('bulk'));
$this->assertSame('bulk', $protocol->read($connection));
}