Annotation of embedaddon/php/Zend/tests/traits/bug54441.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #54441 (Changing trait static method visibility)
! 3: --FILE--
! 4: <?php
! 5:
! 6: trait Foo {
! 7: public function bar() {}
! 8: }
! 9:
! 10: class Boo {
! 11: use Foo {
! 12: bar as dontKnow;
! 13: dontKnow as protected;
! 14: }
! 15: }
! 16:
! 17: ?>
! 18: --EXPECTF--
! 19: Fatal error: The modifiers for the trait alias dontKnow() need to be changed in the same statment in which the alias is defined. Error in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>