]> granicus.if.org Git - php/commitdiff
increase code coverage
authorGreg Beaver <cellog@php.net>
Wed, 23 Apr 2008 18:45:42 +0000 (18:45 +0000)
committerGreg Beaver <cellog@php.net>
Wed, 23 Apr 2008 18:45:42 +0000 (18:45 +0000)
ext/phar/tests/phar_convert_again.phpt

index 20b973c3dc677ab023393ffeab6ba8d4896b9c0e..7cbec7cd13d200c63e1fc4e0a792a580776b4c37 100644 (file)
@@ -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===