fileListing = new FileListing(); } /** * @return void */ public function testGetDirContent(): void { $this->assertFalse($this->fileListing->getDirContent('nonexistent directory')); } /** * @return void */ public function testGetFileSelectOptions(): void { $this->assertFalse($this->fileListing->getFileSelectOptions('nonexistent directory')); } /** * @return void */ public function testSupportedDecompressions(): void { $GLOBALS['cfg']['ZipDump'] = false; $GLOBALS['cfg']['GZipDump'] = false; $GLOBALS['cfg']['BZipDump'] = false; $this->assertEmpty($this->fileListing->supportedDecompressions()); $GLOBALS['cfg']['ZipDump'] = true; $GLOBALS['cfg']['GZipDump'] = true; $GLOBALS['cfg']['BZipDump'] = true; $this->assertEquals('gz|bz2|zip', $this->fileListing->supportedDecompressions()); } }