Fireguard\Report\Exporters\AbstractExporterTest::testExporterConstructor PHP Method

testExporterConstructor() public method

    public function testExporterConstructor()
    {
        $this->assertFileExists($this->exporter->getPath());
        $this->assertTrue(!file_exists($this->exporter->getFullPath()) || is_writable($this->exporter->getFullPath()), 'Is not writable path generated');
        $tmpName = str_replace(sys_get_temp_dir(), '', tempnam(sys_get_temp_dir(), 'test-report'));
        $exporter = $this->getMockForAbstractClass(AbstractExporter::class, ['', $tmpName]);
        $this->assertEquals($tmpName, $exporter->getFileName());
    }