From: Greg Beaver Date: Wed, 23 Apr 2008 18:45:42 +0000 (+0000) Subject: increase code coverage X-Git-Tag: RELEASE_2_0_0b1~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5309e4aad3e6f9de89f6b6c1e1829a721941ad4;p=php increase code coverage --- 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===