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

1.1     ! misho       1: --TEST--
        !             2: Traits and get_called_class().
        !             3: --CREDITS--
        !             4: Simas Toleikis simast@gmail.com
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8:        trait TestTrait {
        !             9:                public static function test() {
        !            10:                        return get_called_class();
        !            11:                }
        !            12:        }
        !            13: 
        !            14:        class A {
        !            15:                use TestTrait;
        !            16:        }
        !            17: 
        !            18:        class B extends A { }
        !            19: 
        !            20:        echo B::test();
        !            21: 
        !            22: ?>
        !            23: --EXPECT--
        !            24: B

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