Arquivos
hhvm/hphp/test/slow/object_method/728.php
T
Paul Tarjan c2ec1c97c9 sortof format slow tests
A poor man's formatter since I didn't like any of the other ones I found. The original C++ source sometimes put newlines and sometimes not.

Codemods:

    codemod '([;{}])([^\n])' '\1\n\2'
    codemod -m '\s*<\?php\s+' '<?php\n\n'
    codemod '\t' '  '

I hand-fixed all the failing tests
2013-05-30 17:32:57 -07:00

32 linhas
427 B
PHP

<?php
class A1 {
function a1f($a) {
var_dump('a1f:0');
}
static function a1b($a) {
var_dump('a1b:0');
}
}
class B1 extends A1 {
function b1f($a) {
var_dump('b1f:0');
}
static function b1b($a) {
var_dump('b1b:0');
}
}
$f = 'a1f';
$b = 'a1b';
A1::$f(1);
A1::$b(1);
B1::$f(1);
B1::$b(1);
$f = 'b1f';
$b = 'b1b';
B1::$f(1);
B1::$b(1);
$f = 'b2f';
$b = 'b2b';
call_user_func(array('B1', 'b1f'), 1);