/**
* @group disconnected
*/
public function testIterableMultibulkSupport()
{
$protocol = new ProtocolProcessor();
$protocol->useIterableMultibulk(true);
$connection = $this->getMock('Predis\\Connection\\CompositeConnectionInterface');
$connection->expects($this->once(4))->method('readLine')->will($this->returnValue('*1'));
$this->assertInstanceOf('Predis\\Response\\Iterator\\MultiBulk', $protocol->read($connection));
}