PhpBench\Tests\Unit\Report\Generator\EnvGeneratorTest::testEnvEachSuite PHP Метод

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

It should generate an environment report for each suite.
public testEnvEachSuite ( )
    public function testEnvEachSuite()
    {
        $collection = TestUtil::createCollection([['env' => ['vcs' => ['branch' => 'my_branch']]], ['env' => ['vcs' => ['branch' => 'my_branch']]]]);
        $report = $this->generator->generate($collection, new Config('foo', []));
        $this->assertXPathCount($report, 1, '//table[contains(@title, "Suite #0")]');
        $this->assertXPathCount($report, 1, '//table[contains(@title, "Suite #1")]');
    }