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

1.1     ! misho       1: --TEST--
        !             2: Traits with __callStatic magic method.
        !             3: --CREDITS--
        !             4: Simas Toleikis simast@gmail.com
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8:        trait TestTrait {
        !             9:                public static function __callStatic($name, $arguments) {
        !            10:                        return $name;
        !            11:                }
        !            12:        }
        !            13: 
        !            14:        class A {
        !            15:                use TestTrait;
        !            16:        }
        !            17: 
        !            18:        echo A::Test();
        !            19: 
        !            20: ?>
        !            21: --EXPECT--
        !            22: Test

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