PhpBench\Tests\Unit\Report\Generator\TableGeneratorTest::testBreak PHP Метод

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

It should break into multiple tables.
public testBreak ( array $breaks, array $assertions )
$breaks array
$assertions array
    public function testBreak(array $breaks, array $assertions)
    {
        $prototype = ['benchmarks' => ['oneBench', 'twoBench'], 'subjects' => ['subjectOne', 'subjectTwo'], 'output_time_unit' => 'milliseconds', 'output_time_precision' => 7, 'output_mode' => 'throughput', 'env' => ['uname' => ['os' => 'linux', 'type' => 'penguin']]];
        $collection = TestUtil::createCollection([$prototype, $prototype]);
        $report = $this->generate($collection, ['break' => $breaks]);
        foreach ($assertions as $expression => $count) {
            $this->assertXPathCount($report, $count, $expression);
        }
    }