summaryrefslogtreecommitdiff
path: root/tests/classes/inheritance_006.phpt
blob: d51dafeedec48b96db200c50ade61e89effe5cae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Private property inheritance check
--FILE--
<?php
Class A {
	private $c;
}

Class B extends A {
	private $c;
}

Class C extends B {
}

var_dump(new C);
?>
--EXPECTF--
object(C)#%d (2) {
  [%u|b%"c":%u|b%"B":private]=>
  NULL
  [%u|b%"c":%u|b%"A":private]=>
  NULL
}