Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
PHP 5.4 support for strings in Bz2 and Gz decompress - removed PHP 5.…
Browse files Browse the repository at this point in the history
…4 version check for some tests
  • Loading branch information
jer committed Feb 11, 2014
1 parent 2249a4c commit 317133b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions test/Compress/GzTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 0 additions & 4 deletions test/CompressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions test/DecompressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions test/Encrypt/BlockCipherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
4 changes: 0 additions & 4 deletions test/Encrypt/OpensslTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 317133b

Please sign in to comment.