/** * It should generate an environment report for each suite. */ 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")]'); }
private function generate(SuiteCollection $collection, array $config = []) { $options = new OptionsResolver(); $this->generator->configure($options); $config = new Config('test', $options->resolve($config)); return $this->generator->generate($collection, $config); }