summaryrefslogtreecommitdiff
path: root/ext/phar/tests/phar_get_supportedcomp2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/phar_get_supportedcomp2.phpt')
-rw-r--r--ext/phar/tests/phar_get_supportedcomp2.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/phar/tests/phar_get_supportedcomp2.phpt b/ext/phar/tests/phar_get_supportedcomp2.phpt
new file mode 100644
index 0000000..c607724
--- /dev/null
+++ b/ext/phar/tests/phar_get_supportedcomp2.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Phar::getSupportedCompression() (bz2 only)
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
+<?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
+<?php if (extension_loaded("zlib")) die("skip zlib is available"); ?>
+--INI--
+phar.require_hash=0
+--FILE--
+<?php
+var_dump(Phar::getSupportedCompression());
+?>
+===DONE===
+--EXPECT--
+array(1) {
+ [0]=>
+ string(5) "BZIP2"
+}
+===DONE=== \ No newline at end of file