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

index 7cbec7cd13d200c63e1fc4e0a792a580776b4c37..26c738b2b135164007856dda619d451ec00ca316 100644 (file)
@@ -53,6 +53,11 @@ $tgz->convertToExecutable(25);
 } catch (Exception $e) {
 echo $e->getMessage() . "\n";
 }
+try {
+$tgz->convertToExecutable(Phar::ZIP, Phar::GZ);
+} catch (Exception $e) {
+echo $e->getMessage() . "\n";
+}
 ?>
 ===DONE===
 --CLEAN--
@@ -79,4 +84,5 @@ 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
+Cannot compress entire archive with gzip, zip archives do not support whole-archive compression
 ===DONE===