1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-01 21:20:09 +02:00

use random_compat

This commit is contained in:
wapplay
2019-12-06 23:23:44 +03:00
parent 95e3312e60
commit a20e9e054d
11 changed files with 75 additions and 70 deletions

View File

@@ -5,7 +5,6 @@ namespace PhpZip;
use PHPUnit\Framework\TestCase;
use PhpZip\Model\ZipEntryMatcher;
use PhpZip\Model\ZipInfo;
use PhpZip\Util\CryptoUtil;
/**
* @internal
@@ -73,11 +72,14 @@ class ZipMatcherTest extends TestCase
$zipFile->close();
}
/**
* @throws \Exception
*/
public function testDocsExample()
{
$zipFile = new ZipFile();
for ($i = 0; $i < 100; $i++) {
$zipFile['file_' . $i . '.jpg'] = CryptoUtil::randomBytes(100);
$zipFile['file_' . $i . '.jpg'] = random_bytes(100);
}
$renameEntriesArray = [