summaryrefslogtreecommitdiff
path: root/ext/phar/tests/pharfileinfo_compression.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/pharfileinfo_compression.phpt')
-rw-r--r--ext/phar/tests/pharfileinfo_compression.phpt6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/phar/tests/pharfileinfo_compression.phpt b/ext/phar/tests/pharfileinfo_compression.phpt
index 95d212dd7f..a271ffc924 100644
--- a/ext/phar/tests/pharfileinfo_compression.phpt
+++ b/ext/phar/tests/pharfileinfo_compression.phpt
@@ -17,7 +17,6 @@ $phar['a/b'] = 'hi there';
$b = $phar['a/b'];
-$b->isCompressed(array());
try {
$b->isCompressed(25);
} catch (Exception $e) {
@@ -71,12 +70,10 @@ var_dump($b->decompress());
var_dump($b->decompress());
?>
-===DONE===
--CLEAN--
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?>
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.tar'); ?>
---EXPECTF--
-Warning: PharFileInfo::isCompressed() expects parameter 1 to be int, array given in %spharfileinfo_compression.php on line 11
+--EXPECT--
Unknown compression type specified
Unknown compression type specified
Cannot compress with Gzip compression, not possible with tar-based phar archives
@@ -91,4 +88,3 @@ Phar is readonly, cannot decompress
Phar entry is a directory, cannot set compression
bool(true)
bool(true)
-===DONE===