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

1.1     ! misho       1: --TEST--
        !             2: __callStatic() Magic method
        !             3: --FILE--
        !             4: <?php
        !             5: class Test
        !             6: {
        !             7:        static function __callStatic($fname, $args)
        !             8:        {
        !             9:                echo $fname, '() called with ', count($args), " arguments\n";
        !            10:        }
        !            11: }
        !            12: 
        !            13: call_user_func("Test::Two", 'A', 'B');
        !            14: call_user_func(array("Test", "Three"), NULL, 0, false);
        !            15: Test::Four(5, 6, 7, 8);
        !            16: 
        !            17: --EXPECT--
        !            18: Two() called with 2 arguments
        !            19: Three() called with 3 arguments
        !            20: Four() called with 4 arguments

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