From: Pierre Joye Date: Wed, 14 Mar 2007 11:02:29 +0000 (+0000) Subject: - add more cases for getComment X-Git-Tag: php-5.2.2RC1~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f5303ab925c5284decfe47dbaa31a2b9a1b8d5b;p=php - add more cases for getComment --- diff --git a/ext/zip/tests/oo_getcomment.phpt b/ext/zip/tests/oo_getcomment.phpt index 2bcbe29543..d05385c7df 100644 --- a/ext/zip/tests/oo_getcomment.phpt +++ b/ext/zip/tests/oo_getcomment.phpt @@ -1,5 +1,5 @@ --TEST-- -Get Comment +getComment --SKIPIF-- open($file)) { exit('failed'); } +echo $zip->getArchiveComment() . "\n"; + $idx = $zip->locateName('foo'); echo $zip->getCommentName('foo') . "\n"; echo $zip->getCommentIndex($idx); +echo $zip->getCommentName('') . "\n"; +echo $zip->getCommentName() . "\n"; + $zip->close(); ?> --EXPECTF-- +Zip archive comment foo comment foo comment +Notice: ZipArchive::getCommentName(): Empty string as entry name in %s on line %d + + +Warning: ZipArchive::getCommentName() expects at least 1 parameter, 0 given in %s on line %d