public function testCompare($config, $assertions)
{
$collection = TestUtil::createCollection([['benchmarks' => ['oneBench', 'twoBench'], 'subjects' => ['subjectOne', 'subjectTwo'], 'env' => ['git' => ['branch' => 'foobar']]], ['benchmarks' => ['oneBench', 'twoBench'], 'subjects' => ['subjectOne', 'subjectTwo'], 'env' => ['git' => ['branch' => 'barfoo']]]]);
$report = $this->generate($collection, $config);
foreach ($assertions as $expectedCount => $xpath) {
$this->assertXPathCount($report, $expectedCount, $xpath);
}
}