PhpBench\Report\Generator\TableGenerator::generate PHP Метод

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

public generate ( SuiteCollection $suiteCollection, Config $config )
$suiteCollection PhpBench\Model\SuiteCollection
$config PhpBench\Registry\Config
    public function generate(SuiteCollection $suiteCollection, Config $config)
    {
        $table = $this->buildTable($suiteCollection, $config);
        $table = $this->processSort($table, $config);
        $tables = $this->processBreak($table, $config);
        $tables = $this->processCols($tables, $config);
        $tables = $this->processCompare($tables, $config);
        $tables = $this->processDiffs($tables, $config);
        return $this->generateDocument($tables, $config);
    }

Usage Example

Пример #1
0
 /**
  * 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")]');
 }
All Usage Examples Of PhpBench\Report\Generator\TableGenerator::generate