소스 검색

Skipped some tests for php 32-bit platform.

Ne-Lexa 8 년 전
부모
커밋
02afaae56c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      tests/PhpZip/ZipPasswordTest.php

+ 8 - 0
tests/PhpZip/ZipPasswordTest.php

@@ -174,6 +174,10 @@ class ZipPasswordTest extends ZipFileAddDirTest
 
     public function testEncryptionEntries()
     {
+        if (PHP_INT_SIZE === 4) {
+            $this->markTestSkipped('Skip test for 32-bit system. Not support Traditional PKWARE Encryption.');
+        }
+
         $password1 = '353442434235424234';
         $password2 = 'adgerhvrwjhqqehtqhkbqrgewg';
 
@@ -210,6 +214,10 @@ class ZipPasswordTest extends ZipFileAddDirTest
 
     public function testEncryptionEntriesWithDefaultPassword()
     {
+        if (PHP_INT_SIZE === 4) {
+            $this->markTestSkipped('Skip test for 32-bit system. Not support Traditional PKWARE Encryption.');
+        }
+
         $password1 = '353442434235424234';
         $password2 = 'adgerhvrwjhqqehtqhkbqrgewg';
         $defaultPassword = '  f  f  f  f f  ffff   f5   ';