Arquivos
hhvm/hphp/test/quick/call13.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

35 linhas
453 B
PHP

<?php
class C {
}
class D extends C {
public function __call($fn, $args) {
echo "D::__call\n";
}
}
class E extends D {
public function __call($fn, $args) {
echo "E::__call\n";
}
public function test() {
$this->foo();
D::foo();
E::foo();
}
}
class F extends D {
public function __call($fn, $args) {
echo "F::__call\n";
}
}
function main() {
$obj = new E;
$obj->test();
$obj->foo();
E::foo();
}
main();