Annotation of embedaddon/php/Zend/tests/call_user_func_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing call_user_func() with autoload and passing invalid params
3: --FILE--
4: <?php
5:
6: function __autoload($class) {
7: var_dump($class);
8: }
9:
10: call_user_func(array('foo', 'bar'));
11: call_user_func(array('', 'bar'));
12: call_user_func(array($foo, 'bar'));
13: call_user_func(array($foo, ''));
14:
15: ?>
16: --EXPECTF--
17: %unicode|string%(3) "foo"
18:
19: Warning: call_user_func() expects parameter 1 to be a valid callback, class 'foo' not found in %s on line %d
20:
21: Warning: call_user_func() expects parameter 1 to be a valid callback, class '' not found in %s on line %d
22:
23: Notice: Undefined variable: foo in %s on line %d
24:
25: Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in %s on line %d
26:
27: Notice: Undefined variable: foo in %s on line %d
28:
29: Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>