Наследование: extends AbstractExporter, implements Fireguard\Report\Contracts\ExporterContract
Пример #1
0
 protected function createHtmlFiles(ReportContract $report)
 {
     $exporter = new HtmlExporter($this->getPath(), $this->fileName);
     $this->htmlBodyPath = $exporter->saveFile($report->getContent());
     $this->htmlHeader = $this->processInlineHtml($report->getHeader());
     $this->htmlFooter = $this->processInlineHtml($report->getFooter());
 }
Пример #2
0
 public function testCreateReportFile()
 {
     $exporter = new HtmlExporter();
     $file = $exporter->saveFile('<div>Aqui entra um html qualquer</div>');
     $this->assertFileExists($file);
     $this->assertStringEqualsFile($file, '<div>Aqui entra um html qualquer</div>');
 }
Пример #3
0
 protected function generateHtmlWithAllReportContent(ReportContract $report)
 {
     $exporter = new HtmlExporter($this->getPath(), $this->fileName);
     return $exporter->generate($report);
 }