Fireguard\Report\Exporters\ImageExporterTest::testGenerateImage PHP Méthode

testGenerateImage() public méthode

public testGenerateImage ( )
    public function testGenerateImage()
    {
        $exporter = new ImageExporter();
        $report = new Report('<section class="content">Content</section>', '<section class="header">Header</section>', '<section class="footer">Footer</section>');
        $file = $exporter->generate($report);
        $this->assertFileExists($file);
        $this->assertTrue(filesize($file) > 1000, 'Generate file is empty');
    }