Annotation of embedaddon/php/Zend/tests/access_modifiers_010.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing visibility of methods
3: --FILE--
4: <?php
5:
6: class d {
7: private function test2() {
8: print "Bar\n";
9: }
10: }
11:
12: abstract class a extends d {
13: public function test() {
14: $this->test2();
15: }
16: }
17:
18: abstract class b extends a {
19: }
20:
21: class c extends b {
22: public function __construct() {
23: $this->test();
24: }
25: }
26:
27: new c;
28:
29: ?>
30: --EXPECTF--
31: Fatal error: Call to private method d::test2() from context 'a' in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>