diff options
| author | Pierre Joye <pajoye@php.net> | 2006-11-15 23:53:46 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2006-11-15 23:53:46 +0000 |
| commit | 426dce9ce36a317a2d1f998be5ab26e1eb3678b1 (patch) | |
| tree | cb375316170c106573adeeaeff3128187d2e3970 /ext/zip | |
| parent | c412409164b0ca46fe1abfb1c2b16333d9b6ae8e (diff) | |
| download | php-git-426dce9ce36a317a2d1f998be5ab26e1eb3678b1.tar.gz | |
- mv oo_get_comment.phpt oo_getcomment.phpt
Diffstat (limited to 'ext/zip')
| -rw-r--r-- | ext/zip/tests/oo_getcomment.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/zip/tests/oo_getcomment.phpt b/ext/zip/tests/oo_getcomment.phpt new file mode 100644 index 0000000000..2bcbe29543 --- /dev/null +++ b/ext/zip/tests/oo_getcomment.phpt @@ -0,0 +1,26 @@ +--TEST-- +Get Comment +--SKIPIF-- +<?php +/* $Id$ */ +if(!extension_loaded('zip')) die('skip'); +?> +--FILE-- +<?php +$dirname = dirname(__FILE__) . '/'; +$file = $dirname . 'test_with_comment.zip'; +include $dirname . 'utils.inc'; +$zip = new ZipArchive; +if (!$zip->open($file)) { + exit('failed'); +} +$idx = $zip->locateName('foo'); +echo $zip->getCommentName('foo') . "\n"; +echo $zip->getCommentIndex($idx); + +$zip->close(); + +?> +--EXPECTF-- +foo comment +foo comment |
