From cebd8a5864076d72a68f31194c40f7620dc5d906 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 23 Apr 2008 18:46:48 +0000 Subject: [PATCH] increase code coverage --- ext/phar/tests/phar_convert_again.phpt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/phar/tests/phar_convert_again.phpt b/ext/phar/tests/phar_convert_again.phpt index 26c738b2b1..903eb6afe5 100644 --- a/ext/phar/tests/phar_convert_again.phpt +++ b/ext/phar/tests/phar_convert_again.phpt @@ -58,6 +58,11 @@ $tgz->convertToExecutable(Phar::ZIP, Phar::GZ); } catch (Exception $e) { echo $e->getMessage() . "\n"; } +try { +$tgz->convertToExecutable(Phar::ZIP, Phar::BZ2); +} catch (Exception $e) { +echo $e->getMessage() . "\n"; +} ?> ===DONE=== --CLEAN-- @@ -85,4 +90,5 @@ hi %sphar_convert_again2.phar.tar.gz Unknown file format specified, please pass one of Phar::PHAR, Phar::TAR or Phar::ZIP Cannot compress entire archive with gzip, zip archives do not support whole-archive compression +Cannot compress entire archive with bz2, zip archives do not support whole-archive compression ===DONE=== -- 2.50.1