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