mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-08-06 15:36:28 +02:00
Fixed problem with cloning a zip container.
This commit is contained in:
@@ -2435,4 +2435,18 @@ class ZipFileTest extends ZipTestCase
|
||||
|
||||
$zipFile->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws ZipException
|
||||
*/
|
||||
public function testMultiSave()
|
||||
{
|
||||
$zipFile = new ZipFile();
|
||||
$zipFile['file 1'] = 'contents';
|
||||
for ($i = 0; $i < 10; $i++) {
|
||||
$zipFile->saveAsFile($this->outputFilename);
|
||||
self::assertCorrectZipArchive($this->outputFilename);
|
||||
}
|
||||
$zipFile->close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user