Fireguard\Report\Exporters\HtmlExporterTest::testGenerateOnlyFooterReportFile PHP Метод

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

    public function testGenerateOnlyFooterReportFile()
    {
        $exporter = new HtmlExporter();
        $report = new Report('<section class="content">Content</section>', '', '<section class="footer">Footer</section>');
        $file = $exporter->generate($report);
        $this->assertFileExists($file);
        $expectHtml = '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>' . $exporter->getFileName() . '</title></head><body style="background-color: #ffffff;"><section class="content">Content</section><section class=\'footer\'>Footer</section></body></html>';
        $this->assertStringEqualsFile($file, $expectHtml);
    }