felipe          Mon Aug 25 19:38:38 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/standard/tests/general_functions       callbacks_002.phpt 
  Log:
  - New test
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/callbacks_002.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/general_functions/callbacks_002.phpt
+++ php-src/ext/standard/tests/general_functions/callbacks_002.phpt
--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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to