PhpBench\Tests\Unit\Storage\Driver\Xml\HistoryIteratorTest::createCollection PHP Method

createCollection() private method

private createCollection ( $uuid, DateTime $date )
$date DateTime
    private function createCollection($uuid, \DateTime $date)
    {
        $collection = $this->prophesize(SuiteCollection::class);
        $suite = $this->prophesize(Suite::class);
        $summary = $this->prophesize(Summary::class);
        $collection->getSuites()->willReturn([$suite->reveal()]);
        $suite->getUuid()->willReturn($uuid);
        $suite->getDate()->willReturn($date);
        $suite->getContextName()->willReturn('foo');
        $suite->getEnvInformations()->willReturn(['vcs' => ['branch' => 'foo_branch']]);
        $suite->getSummary()->willReturn($summary->reveal());
        $summary->getNbSubjects()->willReturn(5);
        $summary->getNbIterations()->willReturn(10);
        $summary->getNbRevolutions()->willReturn(1000);
        $summary->getMinTime()->willReturn(1);
        $summary->getMaxTime()->willReturn(2);
        $summary->getMeanTime()->willReturn(3);
        $summary->getMeanRelStDev()->willReturn(4);
        $summary->getTotalTime()->willReturn(5);
        return $collection;
    }