From 9c60d2dcafd78830cc0a6bf42393aa8b6055f142 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 23 Apr 2008 19:00:42 +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 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=== -- 2.50.1