]> granicus.if.org Git - php/commitdiff
Added test case which was only added to trunk, bug seems to be fixed already.
authorStefan Marr <gron@php.net>
Sat, 23 Jul 2011 13:42:58 +0000 (13:42 +0000)
committerStefan Marr <gron@php.net>
Sat, 23 Jul 2011 13:42:58 +0000 (13:42 +0000)
Zend/tests/traits/bug55137.phpt [new file with mode: 0644]

diff --git a/Zend/tests/traits/bug55137.phpt b/Zend/tests/traits/bug55137.phpt
new file mode 100644 (file)
index 0000000..4a4e6e6
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+Bug #55137 (Changing trait static method visibility)
+--FILE--
+<?php
+
+trait A {
+   protected static function foo() { echo "abc\n"; }
+   private static function bar() { echo "def\n"; }
+}
+
+
+class B {
+   use A {
+      A::foo as public;
+      A::bar as public baz;
+   }
+}
+
+B::foo();
+B::baz();
+
+
+?>
+--EXPECT--
+abc
+def