Inheritance: extends AbstractExporter, implements Fireguard\Report\Contracts\ExporterContract
Exemplo n.º 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());
 }
Exemplo n.º 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>');
 }
Exemplo n.º 3
0
 protected function generateHtmlWithAllReportContent(ReportContract $report)
 {
     $exporter = new HtmlExporter($this->getPath(), $this->fileName);
     return $exporter->generate($report);
 }