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

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

It should add table and report titles and descriptions.
public testTitles ( )
    public function testTitles()
    {
        $collection = TestUtil::createCollection([[]]);
        $report = $this->generate($collection, ['title' => 'Hello World', 'description' => 'The world said hello back.']);
        $this->assertXPathCount($report, 1, '//report[@title="Hello World"]');
        $this->assertXPathCount($report, 1, '//report[description="The world said hello back."]');
        // the table title is the break criteria, in this case the suite index.
        $this->assertXPathCount($report, 1, '//table[@title="suite: 0, date: 2016-02-06, stime: 00:00:00"]');
    }