PhpBench\Tests\Unit\Report\Renderer\XsltRendererTest::testRenderTemplateReportNameToken PHP Method

testRenderTemplateReportNameToken() public method

It should replace the %report_name% token with the report name,.
    public function testRenderTemplateReportNameToken()
    {
        $reports = $this->getReportsDocument();
        $this->renderReport($reports, ['template' => __DIR__ . '/templates/test.xsl', 'file' => 'foobar_%report_name%.html']);
        $this->assertFileExists($this->tokenReport);
        $this->assertContains('zeeSa8ju', file_get_contents($this->tokenReport));
    }