Annotation of embedaddon/php/Zend/tests/bug55137.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #55137 (Changing trait static method visibility)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: trait A {
                      7:    protected static function foo() { echo "abc\n"; }
                      8:    private static function bar() { echo "def\n"; }
                      9: }
                     10: 
                     11: 
                     12: class B {
                     13:    use A {
                     14:       A::foo as public;
                     15:       A::bar as public baz;
                     16:    }
                     17: }
                     18: 
                     19: B::foo();
                     20: B::baz();
                     21: 
                     22: 
                     23: ?>
                     24: --EXPECT--
                     25: abc
                     26: def

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