summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Marr <gron@php.net>2011-07-23 13:42:58 +0000
committerStefan Marr <gron@php.net>2011-07-23 13:42:58 +0000
commit52b81b8566e44c5c50956412bec66c90076c4b06 (patch)
tree29fc78f2ab78799278ef8056ff48693621526dbb
parent835523048020030665c7eca3f25dbd916c532e62 (diff)
downloadphp-git-52b81b8566e44c5c50956412bec66c90076c4b06.tar.gz
Added test case which was only added to trunk, bug seems to be fixed already.
-rw-r--r--Zend/tests/traits/bug55137.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/Zend/tests/traits/bug55137.phpt b/Zend/tests/traits/bug55137.phpt
new file mode 100644
index 0000000000..4a4e6e61a2
--- /dev/null
+++ b/Zend/tests/traits/bug55137.phpt
@@ -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