pajoye          Wed Mar 14 11:02:29 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/zip/tests      oo_getcomment.phpt 
  Log:
  - add more cases for getComment
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_getcomment.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/zip/tests/oo_getcomment.phpt
diff -u php-src/ext/zip/tests/oo_getcomment.phpt:1.1.2.2 
php-src/ext/zip/tests/oo_getcomment.phpt:1.1.2.3
--- php-src/ext/zip/tests/oo_getcomment.phpt:1.1.2.2    Wed Nov 15 23:53:46 2006
+++ php-src/ext/zip/tests/oo_getcomment.phpt    Wed Mar 14 11:02:29 2007
@@ -1,8 +1,8 @@
 --TEST--
-Get Comment
+getComment
 --SKIPIF--
 <?php
-/* $Id: oo_getcomment.phpt,v 1.1.2.2 2006/11/15 23:53:46 pajoye Exp $ */
+/* $Id: oo_getcomment.phpt,v 1.1.2.3 2007/03/14 11:02:29 pajoye Exp $ */
 if(!extension_loaded('zip')) die('skip');
 ?>
 --FILE--
@@ -14,13 +14,23 @@
 if (!$zip->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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to