]> granicus.if.org Git - php/commitdiff
Merge missing test from 5_4
authorHannes Magnusson <bjori@php.net>
Mon, 12 Sep 2011 10:13:54 +0000 (10:13 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 12 Sep 2011 10:13:54 +0000 (10:13 +0000)
Zend/tests/bug55137.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug55137.phpt b/Zend/tests/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