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

From: Date: Mon, 30 Apr 2007 19:52:04 +0000
Subject: cvs: php-src /ext/spl/tests spl_007.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-44108@lists.php.net to get a copy of this message
johannes Mon Apr 30 19:52:04 2007 UTC Added files: /php-src/ext/spl/tests spl_007.phpt Log: - Add new test http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/spl_007.phpt?view=markup&rev=1.1 Index: php-src/ext/spl/tests/spl_007.phpt +++ php-src/ext/spl/tests/spl_007.phpt --TEST-- SPL: iterator_apply() with callback using __call() --SKIPIF-- <?php if (!extension_loaded("spl")) print "skip"; ?> --FILE-- <?php class Foo { public function __call($name, $params) { echo "Called $name.\n"; return true; } } $it = new ArrayIterator(array(1, 2, 3)); iterator_apply($it, array(new Foo, "foobar")); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Called foobar. Called foobar. Called foobar. ===DONE===

« previous php.cvs (#44108) next »