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

From: Date: Mon, 20 Nov 2006 19:55:54 +0000
Subject: cvs: php-src /ext/spl/tests spl_006.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41654@lists.php.net to get a copy of this message
helly Mon Nov 20 19:55:54 2006 UTC Added files: /php-src/ext/spl/tests spl_006.phpt Log: - Add new test http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/spl_006.phpt?view=markup&rev=1.1 Index: php-src/ext/spl/tests/spl_006.phpt +++ php-src/ext/spl/tests/spl_006.phpt --TEST-- SPL: iterator_to_array() without keys --SKIPIF-- <?php if (!extension_loaded("spl")) print "skip"; ?> --FILE-- <?php $it = new AppendIterator(); $it->append(new ArrayIterator(array(1,2))); $it->append(new ArrayIterator(array(2,3))); var_dump(iterator_to_array($it)); var_dump(iterator_to_array($it, false)); var_dump(iterator_to_array($it, true)); ?> ===DONE=== --EXPECT-- array(2) { [0]=> int(2) [1]=> int(3) } array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(2) [3]=> int(3) } array(2) { [0]=> int(2) [1]=> int(3) } ===DONE===

« previous php.cvs (#41654) next »