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===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php