summaryrefslogtreecommitdiff
path: root/ext/zip/tests/zip_entry_compressionmethod.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/tests/zip_entry_compressionmethod.phpt')
-rw-r--r--ext/zip/tests/zip_entry_compressionmethod.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/zip/tests/zip_entry_compressionmethod.phpt b/ext/zip/tests/zip_entry_compressionmethod.phpt
new file mode 100644
index 0000000..cabdbb7
--- /dev/null
+++ b/ext/zip/tests/zip_entry_compressionmethod.phpt
@@ -0,0 +1,24 @@
+--TEST--
+zip_entry_compressionmethod() function
+--SKIPIF--
+<?php
+/* $Id$ */
+if(!extension_loaded('zip')) die('skip');
+?>
+--FILE--
+<?php
+$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
+if (!is_resource($zip)) die("Failure");
+$entries = 0;
+while ($entry = zip_read($zip)) {
+ echo zip_entry_compressionmethod($entry)."\n";
+}
+zip_close($zip);
+
+?>
+--EXPECT--
+stored
+stored
+stored
+deflated
+