PhpBench\Tests\Unit\Report\Generator\TableGeneratorTest::testCompare PHP Method

testCompare() public method

It should isolate a factor and compare statistics horizontally.
public testCompare ( $config, $assertions )
    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);
        }
    }