From 317133b88c09493c3a353d1cb46204a406d1b1d6 Mon Sep 17 00:00:00 2001 From: jer Date: Tue, 11 Feb 2014 16:24:03 +0100 Subject: [PATCH] PHP 5.4 support for strings in Bz2 and Gz decompress - removed PHP 5.4 version check for some tests --- test/Compress/GzTest.php | 4 ---- test/CompressTest.php | 4 ---- test/DecompressTest.php | 4 ---- test/Encrypt/BlockCipherTest.php | 4 ---- test/Encrypt/OpensslTest.php | 4 ---- 5 files changed, 20 deletions(-) diff --git a/test/Compress/GzTest.php b/test/Compress/GzTest.php index dbaba616..1f901bca 100644 --- a/test/Compress/GzTest.php +++ b/test/Compress/GzTest.php @@ -160,10 +160,6 @@ public function testGzCompressToFile() */ public function testGzDeflate() { - if (version_compare(phpversion(), '5.4', '>=')) { - $this->markTestIncomplete('Code to test is not compatible with PHP 5.4 '); - } - $filter = new GzCompression(array('mode' => 'deflate')); $content = $filter->compress('compress me'); diff --git a/test/CompressTest.php b/test/CompressTest.php index fbcd47c1..2aed886d 100644 --- a/test/CompressTest.php +++ b/test/CompressTest.php @@ -37,10 +37,6 @@ public function tearDown() */ public function testBasicUsage() { - if (version_compare(phpversion(), '5.4', '>=')) { - $this->markTestIncomplete('Code to test is not compatible with PHP 5.4 '); - } - $filter = new CompressFilter('bz2'); $text = 'compress me'; diff --git a/test/DecompressTest.php b/test/DecompressTest.php index cc46b531..b6e94752 100644 --- a/test/DecompressTest.php +++ b/test/DecompressTest.php @@ -37,10 +37,6 @@ public function tearDown() */ public function testBasicUsage() { - if (version_compare(phpversion(), '5.4', '>=')) { - $this->markTestIncomplete('Code to test is not compatible with PHP 5.4 '); - } - $filter = new DecompressFilter('bz2'); $text = 'compress me'; diff --git a/test/Encrypt/BlockCipherTest.php b/test/Encrypt/BlockCipherTest.php index 2273cfbe..53759f2c 100644 --- a/test/Encrypt/BlockCipherTest.php +++ b/test/Encrypt/BlockCipherTest.php @@ -200,10 +200,6 @@ public function testSettingEmptyVector() */ public function testEncryptionWithDecryptionAndCompressionMcrypt() { - if (version_compare(phpversion(), '5.4', '>=')) { - $this->markTestIncomplete('Code to test is not compatible with PHP 5.4 '); - } - if (!extension_loaded('bz2')) { $this->markTestSkipped('This adapter needs the bz2 extension'); } diff --git a/test/Encrypt/OpensslTest.php b/test/Encrypt/OpensslTest.php index 972946ed..e7f214c3 100644 --- a/test/Encrypt/OpensslTest.php +++ b/test/Encrypt/OpensslTest.php @@ -274,10 +274,6 @@ public function testEncryptionWithDecryptionWithPackagedKeys() */ public function testEncryptionWithDecryptionAndCompressionWithPackagedKeys() { - if (version_compare(phpversion(), '5.4', '>=')) { - $this->markTestIncomplete('Code to test is not compatible with PHP 5.4 '); - } - if (!extension_loaded('bz2')) { $this->markTestSkipped('Bz2 extension for compression test needed'); }