From: Greg Beaver Date: Wed, 23 Apr 2008 19:00:42 +0000 (+0000) Subject: increase code coverage X-Git-Tag: RELEASE_2_0_0b1~238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c60d2dcafd78830cc0a6bf42393aa8b6055f142;p=php increase code coverage --- diff --git a/ext/phar/tests/phar_convert_again.phpt b/ext/phar/tests/phar_convert_again.phpt index f25cc8f495..551835b312 100644 --- a/ext/phar/tests/phar_convert_again.phpt +++ b/ext/phar/tests/phar_convert_again.phpt @@ -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===