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

Skipped some tests for php 32-bit platform.

This commit is contained in:
Ne-Lexa
2017-11-14 11:28:02 +03:00
parent 1b1495eee8
commit 0d4b101510
4 changed files with 24 additions and 3 deletions

View File

@@ -6,6 +6,9 @@ use PhpZip\Exception\ZipAuthenticationException;
use PhpZip\Model\ZipInfo;
use PhpZip\Util\CryptoUtil;
/**
* Tests with zip password.
*/
class ZipPasswordTest extends ZipFileAddDirTest
{
/**
@@ -13,6 +16,10 @@ class ZipPasswordTest extends ZipFileAddDirTest
*/
public function testSetPassword()
{
if (PHP_INT_SIZE === 4) {
$this->markTestSkipped('Skip test for 32-bit system. Not support Traditional PKWARE Encryption.');
}
$password = base64_encode(CryptoUtil::randomBytes(100));
$badPassword = "sdgt43r23wefe";
@@ -96,6 +103,10 @@ class ZipPasswordTest extends ZipFileAddDirTest
public function testTraditionalEncryption()
{
if (PHP_INT_SIZE === 4) {
$this->markTestSkipped('Skip test for 32-bit system. Not support Traditional PKWARE Encryption.');
}
$password = base64_encode(CryptoUtil::randomBytes(50));
$zip = new ZipFile();