public function testFetchAllWithInstallOperation()
{
list($opp, $pp) = $this->createProphecies();
$pp->getName()->willReturn('acme/acme');
$pp->getDistType()->willReturn('composer');
$pp->getDistUrl()->willReturn('file://' . __DIR__ . '/test.txt');
$pp->getDistMirrors()->willReturn(array());
$pp->getSourceUrl()->shouldNotBeCalled();
$opp->getPackage()->willReturn($pp->reveal())->shouldBeCalled();
$fetcher = new Prefetcher();
$fetcher->fetchAllFromOperations($this->iop->reveal(), $this->configp->reveal(), array($opp->reveal()));
}