Annotation of embedaddon/php/ext/standard/tests/general_functions/call_user_method.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Basic behaviour of call_user_method() test
                      3: --CREDITS--
                      4: Sebastian Schürmann 
                      5: sebs@php.net
                      6: Testfest 2009 Munich
                      7: --FILE--
                      8: <?php
                      9: class a {
                     10:        static function b() {
                     11:                return true;
                     12:        }
                     13: }
                     14: $a = new a();
                     15: $res = call_user_method('b', $a);
                     16: var_dump($res);
                     17: ?>
                     18: --EXPECTF--
                     19: Deprecated: Function call_user_method() is deprecated in %s on line 8
                     20: bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>