diff options
Diffstat (limited to 'ext/zip/tests/zip_entry_name.phpt')
| -rw-r--r-- | ext/zip/tests/zip_entry_name.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/zip/tests/zip_entry_name.phpt b/ext/zip/tests/zip_entry_name.phpt new file mode 100644 index 000000000..b47c89fdb --- /dev/null +++ b/ext/zip/tests/zip_entry_name.phpt @@ -0,0 +1,23 @@ +--TEST-- +zip_entry_name() function +--SKIPIF-- +<?php +/* $Id: zip_entry_name.phpt,v 1.1 2006/07/24 16:58:58 pajoye Exp $ */ +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_name($entry)."\n"; +} +zip_close($zip); + +?> +--EXPECT-- +foo +bar +foobar/ +foobar/baz |
