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); }
protected function generateHtmlWithAllReportContent(ReportContract $report) { $exporter = new HtmlExporter($this->getPath(), $this->fileName); return $exporter->generate($report); }