From b721660ec7aa52bd0e165e743efb90401c54ca7e Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 23 Apr 2008 19:01:52 +0000 Subject: [PATCH] increase code coverage --- ext/phar/tests/phar_convert_again.phpt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ext/phar/tests/phar_convert_again.phpt b/ext/phar/tests/phar_convert_again.phpt index 551835b312..776d978c9f 100644 --- a/ext/phar/tests/phar_convert_again.phpt +++ b/ext/phar/tests/phar_convert_again.phpt @@ -62,6 +62,11 @@ $data->setAlias('hi'); } catch (Exception $e) { echo $e->getMessage() . "\n"; } +try { +$data->setSignatureAlgorithm(Phar::MD5); +} catch (Exception $e) { +echo $e->getMessage() . "\n"; +} $tar = $phar->convertToExecutable(Phar::TAR); echo $tar->getPath() . "\n"; $data = $tar->convertToData(); @@ -134,6 +139,11 @@ $data->setDefaultStub(); } catch (Exception $e) { echo $e->getMessage() . "\n"; } +try { +$data->setSignatureAlgorithm(Phar::MD5); +} catch (Exception $e) { +echo $e->getMessage() . "\n"; +} ?> ===DONE=== --CLEAN-- @@ -163,6 +173,7 @@ hi A Phar stub cannot be set in a plain zip archive A Phar stub cannot be set in a plain zip archive A Phar alias cannot be set in a plain zip archive +Cannot set signature algorithm, not possible with zip-based phar archives %sphar_convert_again2.phar.tar %sphar_convert_again2.tar %sphar_convert_again2.phar.tar.gz @@ -179,4 +190,5 @@ Unknown compression specified, please pass one of Phar::GZ or Phar::BZ2 A Phar stub cannot be set in a plain tar archive A Phar alias cannot be set in a plain tar archive A Phar stub cannot be set in a plain tar archive +Cannot set signature algorithm, not possible with tar-based phar archives ===DONE=== -- 2.50.1