--TEST-- Visibility can be changed with the as aliasing construct as well. --FILE-- sayHello(); ?> --EXPECTF-- Fatal error: Uncaught Error: Call to protected method MyClass::sayHello() from global scope in %s:%d Stack trace: #0 {main} thrown in %s on line %d