PhpBench\Tests\Unit\Model\SuiteTest::testGetSummary PHP Method

testGetSummary() public method

It should return the summary.
public testGetSummary ( )
    public function testGetSummary()
    {
        $errorStack = $this->prophesize(ErrorStack::class);
        $this->bench1->getSubjects()->willReturn([$this->subject1->reveal()]);
        $this->subject1->getVariants()->willReturn([$this->variant1->reveal()]);
        $this->variant1->hasErrorStack()->willReturn(true);
        $this->variant1->count()->willReturn(1);
        $this->variant1->getSubject()->wilLReturn($this->subject1->reveal());
        $this->variant1->getRevolutions()->willReturn(10);
        $this->variant1->getRejectCount()->willReturn(0);
        $this->variant1->getRejectCount()->willReturn(0);
        $this->variant1->getErrorStack()->willReturn($errorStack->reveal());
        $suite = $this->createSuite([$this->bench1->reveal()], [$this->env1->reveal()]);
        $summary = $suite->getSummary();
        $this->assertInstanceOf('PhpBench\\Model\\Summary', $summary);
    }