sebs Sat Apr 25 19:00:42 2009 UTC
Modified files:
/php-src/ext/standard/tests/general_functions call_user_method.phpt
Log:
Initial commit
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/call_user_method.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/general_functions/call_user_method.phpt
diff -u /dev/null
php-src/ext/standard/tests/general_functions/call_user_method.phpt:1.2
--- /dev/null Sat Apr 25 19:00:42 2009
+++ php-src/ext/standard/tests/general_functions/call_user_method.phpt Sat Apr
25 19:00:42 2009
@@ -0,0 +1,20 @@
+--TEST--
+Basic behaviour of call_user_method() test
+--CREDITS--
+Sebastian Schürmann
[email protected]
+Testfest 2009 Munich
+--FILE--
+<?php
+class a {
+ static function b() {
+ return true;
+ }
+}
+$a = new a();
+$res = call_user_method('b', $a);
+var_dump($res);
+?>
+--EXPECTF--
+Deprecated: Function call_user_method() is deprecated in %s on line 8
+bool(true)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php