cvs: php-src(PHP_5_2) /ext/spl/tests iterator_038.phpt

From: Date: Thu, 18 May 2006 21:59:05 +0000
Subject: cvs: php-src(PHP_5_2) /ext/spl/tests iterator_038.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-38266@lists.php.net to get a copy of this message
helly Thu May 18 21:59:05 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/spl/tests iterator_038.phpt Log: - MFH Add new test http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/tests/iterator_038.phpt?view=markup&rev=1.1 Index: php-src/ext/spl/tests/iterator_038.phpt +++ php-src/ext/spl/tests/iterator_038.phpt --TEST-- SPL: RoRewindIterator and string keys --SKIPIF-- <?php if (!extension_loaded("spl")) print "skip"; ?> --FILE-- <?php foreach(new NoRewindIterator(new ArrayIterator(array('Hello'=>0, 'World'=>1))) as $k => $v) { var_dump($v); var_dump($k); } ?> ===DONE=== --EXPECT-- int(0) string(5) "Hello" int(1) string(5) "World" ===DONE=== --UEXPECT-- int(0) unicode(5) "Hello" int(1) unicode(5) "World" ===DONE===

« previous php.cvs (#38266) next »