Hirak\Prestissimo\PrefetcherTest::testFetchAllOnSuccess PHP Method

testFetchAllOnSuccess() public method

    public function testFetchAllOnSuccess()
    {
        $reqp = $this->prophesize('Hirak\\Prestissimo\\CopyRequest');
        $reqp->getCurlOptions()->willReturn(array(CURLOPT_URL => 'file://' . __DIR__ . '/test.txt', CURLOPT_FILE => tmpfile()));
        $reqp->makeSuccess()->willReturn(null);
        $reqp->getMaskedURL()->willReturn('file://' . __DIR__ . '/test.txt');
        $this->iop->writeError(arg::type('string'), true, IOInterface::VERBOSE)->shouldBeCalled();
        $fetcher = new Prefetcher();
        $fetcher->fetchAll($this->iop->reveal(), array($reqp->reveal()));
    }