Annotation of embedaddon/php/Zend/tests/call_static_002.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Testing __call and __callstatic with callbacks
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class Foo {
        !             7:        public function __call($a, $b) {
        !             8:                print "nonstatic\n";
        !             9:                var_dump($a);
        !            10:        }
        !            11:        static public function __callStatic($a, $b) {
        !            12:                print "static\n";
        !            13:                var_dump($a);
        !            14:        }
        !            15: }
        !            16: 
        !            17: $a = new Foo;
        !            18: call_user_func(array($a, 'aAa'));
        !            19: call_user_func(array('Foo', 'aAa'));
        !            20: 
        !            21: ?>
        !            22: --EXPECTF--
        !            23: nonstatic
        !            24: string(3) "aAa"
        !            25: static
        !            26: string(3) "aAa"

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