Arquivos
hhvm/hphp/test/vm/ReflectionClass.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

17 linhas
406 B
PHP

<?php
class Thing {
public static function testOne() { echo "one\n"; }
public static function testTwo() { echo "two\n"; }
public static function testThree() { echo "three\n"; }
public static function testFour() { echo "four\n"; }
}
$class = new ReflectionClass('Thing');
$methods = $class->getMethods();
foreach ($methods as $method) {
var_dump($method->getName());
$method->invoke(null);
}