1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-30 10:19:51 +02:00

added an additional test of the encrypted archive

This commit is contained in:
Ne-Lexa
2017-12-06 15:28:17 +03:00
parent c34f90ac18
commit aa09b24d02
5 changed files with 28 additions and 3 deletions

View File

@@ -224,7 +224,7 @@ class ZipModel implements \Countable
if (isset($this->outEntries[$entryName])) {
return $this->outEntries[$entryName];
}
throw new ZipNotFoundEntry('Zip entry ' . $entryName . ' not found');
throw new ZipNotFoundEntry('Zip entry "' . $entryName . '" not found');
}
/**

View File

@@ -239,7 +239,6 @@ class ZipOutputStream implements ZipOutputStreamInterface
$field = $extraFieldsCollection->get(WinZipAesEntryExtraField::getHeaderId());
if (null !== $field) {
$method = $field->getMethod();
$entry->setMethod($method);
}
}