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

22 linhas
314 B
PHP

<?php
trait TestTrait {
public static function __callStatic($name, $arguments) {
echo "__callStatic: " . $name . "\n";
}
}
class A {
use TestTrait;
}
function main() {
call_user_func('A::Test');
call_user_func(array('A','Test'));
$obj = new A;
call_user_func(array($obj, 'Test'));
}
main();