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

testGetIterations() public method

It should return all of the subjects It should return all of the variants.
public testGetIterations ( )
    public function testGetIterations()
    {
        $this->bench1->getSubjects()->willReturn([$this->subject1->reveal()]);
        $this->subject1->getVariants()->willReturn([$this->variant1->reveal()]);
        $this->variant1->getIterator()->willReturn(new \ArrayIterator([$this->iteration1->reveal()]));
        $suite = $this->createSuite([$this->bench1->reveal()], [$this->env1->reveal()]);
        $this->assertSame([$this->iteration1->reveal()], $suite->getIterations());
        $this->assertSame([$this->variant1->reveal()], $suite->getVariants());
        $this->assertSame([$this->subject1->reveal()], $suite->getSubjects());
    }