PhpBench\Tests\Unit\Model\SuiteTest::testGetErrorStacks PHP Метод

testGetErrorStacks() публичный Метод

It should return all of the error stacks.
public testGetErrorStacks ( )
    public function testGetErrorStacks()
    {
        $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->getErrorStack()->willReturn($errorStack->reveal());
        $suite = $this->createSuite([$this->bench1->reveal()], [$this->env1->reveal()]);
        $this->assertSame([$errorStack->reveal()], $suite->getErrorStacks());
    }