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

index 26c738b2b135164007856dda619d451ec00ca316..903eb6afe52f0aa3c50c0657c7446160aeec60b9 100644 (file)
@@ -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===