1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/callbacks_002.phpt
Felipe Pena d3ed3e3a36 - New test
2008-08-25 19:38:18 +00:00

17 lines
572 B
PHP

--TEST--
call_user_func(): Wrong parameters
--FILE--
<?php
call_user_func(array('Foo', 'bar'));
call_user_func(array(NULL, 'bar'));
call_user_func(array('stdclass', NULL));
?>
--EXPECTF--
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found in %s on line %d
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
Warning: call_user_func() expects parameter 1 to be a valid callback, second array member is not a valid method in %s on line %d