public function test_createFromFolders() { $path = tempnam(sys_get_temp_dir(), 'zip'); $zip = new ZipArchive($path); $zip->addFolder(__DIR__ . '/../../../vendor'); $zip->close(); $this->assertGreaterThan(0, filesize($path)); unlink($path); }