mixed $test:
array $arguments:
public static function run($test, array $arguments = array()) {
if ($test instanceof ReflectionClass) {
$test = new PHPUnit_Framework_TestSuite($test);
}
if ($test instanceof PHPUnit_Framework_Test) {
$aTestRunner = new PHPUnit_TextUI_TestRunner();
return $aTestRunner
->doRun($test, $arguments);
}
else {
throw new PHPUnit_Framework_Exception('No test case or test suite found.');
}
}