1--TEST--
2Testing visibility of methods
3--FILE--
4<?php
5
6class d {
7	private function test2() {
8		print "Bar\n";
9	}
10}
11
12abstract class a extends d {
13	public function test() {
14		$this->test2();
15	}
16}
17
18abstract class b extends a {
19}
20
21class c extends b {
22	public function __construct() {
23		$this->test();
24	}
25}
26
27new c;
28
29?>
30--EXPECTF--
31Fatal error: Uncaught Error: Call to private method d::test2() from context 'a' in %s:%d
32Stack trace:
33#0 %s(%d): a->test()
34#1 %s(%d): c->__construct()
35#2 {main}
36  thrown in %s on line %d
37