]> granicus.if.org Git - php/commitdiff
increase code coverage
authorGreg Beaver <cellog@php.net>
Wed, 23 Apr 2008 19:01:52 +0000 (19:01 +0000)
committerGreg Beaver <cellog@php.net>
Wed, 23 Apr 2008 19:01:52 +0000 (19:01 +0000)
ext/phar/tests/phar_convert_again.phpt

index 551835b3124d0d99231e66c308ab17531636f796..776d978c9f5976c98fb25cbfece726820b86a80c 100644 (file)
@@ -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===