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

From: Date: Thu, 18 May 2006 21:56:57 +0000
Subject: cvs: php-src /ext/spl/tests iterator_038.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-38265@lists.php.net to get a copy of this message
helly Thu May 18 21:56:57 2006 UTC Added files: /php-src/ext/spl/tests iterator_038.phpt Log: - 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 (#38265) next »