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

index f25cc8f49562791630e3894702e5d272d1370d83..551835b3124d0d99231e66c308ab17531636f796 100644 (file)
@@ -53,6 +53,11 @@ $data->setStub('hi');
 echo $e->getMessage() . "\n";
 }
 try {
+$data->setDefaultStub();
+} catch (Exception $e) {
+echo $e->getMessage() . "\n";
+}
+try {
 $data->setAlias('hi');
 } catch (Exception $e) {
 echo $e->getMessage() . "\n";
@@ -124,6 +129,11 @@ $data->setAlias('hi');
 } catch (Exception $e) {
 echo $e->getMessage() . "\n";
 }
+try {
+$data->setDefaultStub();
+} catch (Exception $e) {
+echo $e->getMessage() . "\n";
+}
 ?>
 ===DONE===
 --CLEAN--
@@ -151,6 +161,7 @@ Unable to add newly converted phar "%sphar_convert_again.phar" to the list of ph
 hi
 %sphar_convert_again2.zip
 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
 %sphar_convert_again2.phar.tar
 %sphar_convert_again2.tar
@@ -167,4 +178,5 @@ Unknown compression specified, please pass one of Phar::GZ or Phar::BZ2
 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
 ===DONE===