Arquivos
hhvm/hphp/test/quick/priv3.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

18 linhas
269 B
PHP

<?php
class C {
private function foo() {
echo "C::foo\n";
}
public function test() {
// This should not call C::foo, it should fatal
D::foo();
}
}
class D extends C {
private function foo() {
echo "D::foo\n";
}
}
$obj = new D;
$obj->test();