cvs: php-src /ext/unicode/tests iterator_002.phpt

From: Date: Sat, 18 Feb 2006 17:13:39 +0000
Subject: cvs: php-src /ext/unicode/tests iterator_002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36915@lists.php.net to get a copy of this message
helly Sat Feb 18 17:13:39 2006 UTC Added files: /php-src/ext/unicode/tests iterator_002.phpt Log: - Add test http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/tests/iterator_002.phpt?view=markup&rev=1.1 Index: php-src/ext/unicode/tests/iterator_002.phpt +++ php-src/ext/unicode/tests/iterator_002.phpt --TEST-- Unicode: Iterator and key() --SKIPIF-- <?php if (!unicode_semantics()) die('skip unicode_semantics=off'); ?> --FILE-- <?php foreach(new TextIterator("123") as $pos => $char) { var_dump($pos); var_dump($char); } foreach(new ReverseTextIterator("123") as $pos => $char) { var_dump($pos); var_dump($char); } ?> ===DONE=== --EXPECTF-- int(0) unicode(1) "1" int(1) unicode(1) "2" int(2) unicode(1) "3" int(0) unicode(1) "3" int(1) unicode(1) "2" int(2) unicode(1) "1" ===DONE===

« previous php.cvs (#36915) next »