1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/tests/classes/inheritance_006.phpt
2014-12-21 13:23:02 +00:00

25 lines
275 B
PHP

--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
}