--TEST-- ZE2 A protected method can only be called inside the class --SKIPIF-- --FILE-- fail(); } } $t = new pass(); $t->good(); $t->fail();// must fail because we are calling from outside of class pass echo "Done\n"; // shouldn't be displayed ?> --EXPECTF-- Call fail() Fatal error: Call to protected method pass::fail() from context '' in %s on line %d