--TEST-- ZE2 A private method cannot be called in a derived class --SKIPIF-- --FILE-- show(); } } class fail extends pass { public function ok() { $this->good(); } public function not_ok() { $this->show(); } } $t = new fail(); $t->ok(); $t->not_ok(); // calling a private function echo "Done\n"; // shouldn't be displayed ?> --EXPECTF-- Call show() Fatal error: Call to private method pass::show() from context 'fail' in %s on line %d