/**
* @group disconnected
*/
public function testProcessChain()
{
$command = $this->getMock('Predis\\Command\\CommandInterface');
$processor1 = $this->getMock('Predis\\Command\\Processor\\ProcessorInterface');
$processor1->expects($this->once())->method('process')->with($command);
$processor2 = $this->getMock('Predis\\Command\\Processor\\ProcessorInterface');
$processor2->expects($this->once())->method('process')->with($command);
$processors = array($processor1, $processor2);
$chain = new ProcessorChain($processors);
$chain->process($command);
}