Permalink
Browse files

Merge missing test from 5_4

  • Loading branch information...
1 parent 8b22751 commit b16bb9582b8d60e9685da2101a7b57f299803af7 @bjori bjori committed Sep 12, 2011
Showing with 26 additions and 0 deletions.
  1. +26 −0 Zend/tests/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

0 comments on commit b16bb95

Please sign in to comment.