From e5309e4aad3e6f9de89f6b6c1e1829a721941ad4 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 23 Apr 2008 18:45:42 +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 20b973c3dc..7cbec7cd13 100644 --- a/ext/phar/tests/phar_convert_again.phpt +++ b/ext/phar/tests/phar_convert_again.phpt @@ -48,6 +48,11 @@ $tar = $phar->convertToExecutable(Phar::TAR); echo $tar->getPath() . "\n"; $tgz = $tar->convertToExecutable(null, Phar::GZ); echo $tgz->getPath() . "\n"; +try { +$tgz->convertToExecutable(25); +} catch (Exception $e) { +echo $e->getMessage() . "\n"; +} ?> ===DONE=== --CLEAN-- @@ -73,4 +78,5 @@ Unable to add newly converted phar "%sphar_convert_again.phar" to the list of ph hi %sphar_convert_again2.phar.tar %sphar_convert_again2.phar.tar.gz +Unknown file format specified, please pass one of Phar::PHAR, Phar::TAR or Phar::ZIP ===DONE=== -- 2.50.1