cvs: php-src /ext/standard/tests/general_functions call_user_method.phpt

From: Date: Sat, 25 Apr 2009 19:00:42 +0000
Subject: cvs: php-src /ext/standard/tests/general_functions call_user_method.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-57249@lists.php.net to get a copy of this message
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 +sebs@php.net +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)

« previous php.cvs (#57249) next »