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

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);
}