$suite->addTest(new ParsingBugsTests('testUTF8Request'));
$suite->addTest(new ParsingBugsTests('testUTF8IntString'));
$suite->addTest(new ParsingBugsTests('testStringInt'));
$suite->addTest(new ParsingBugsTests('testStructMemExists'));
$title = 'XML-RPC Unit Tests';
if (isset($only)) {
    $suite = new PHPUnit_TestSuite($only);
}
if (isset($_SERVER['REQUEST_METHOD'])) {
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n<head>\n<title>{$title}</title>\n</head>\n<body>\n<h1>{$title}</h1>\n";
} else {
    echo "{$title}\n\n";
}
if (isset($_SERVER['REQUEST_METHOD'])) {
    echo "<h3>Using lib version: {$xmlrpcVersion} on PHP version: " . phpversion() . "</h3>\n";
    echo '<h3>Running ' . $suite->testCount() . ' tests (some of which are multiple) against servers: http://' . htmlspecialchars($LOCALSERVER . $URI) . ' and https://' . htmlspecialchars($HTTPSSERVER . $HTTPSURI) . "\n ...</h3>\n";
    flush();
} else {
    echo "Using lib version: {$xmlrpcVersion} on PHP version: " . phpversion() . "\n";
    echo 'Running ' . $suite->testCount() . ' tests (some of which are multiple) against servers: http://' . $LOCALSERVER . $URI . ' and https://' . $HTTPSSERVER . $HTTPSURI . "\n\n";
}
// do some basic timing measurement
list($micro, $sec) = explode(' ', microtime());
$start_time = $sec + $micro;
$PHPUnit = new PHPUnit();
$result = $PHPUnit->run($suite);
list($micro, $sec) = explode(' ', microtime());
$end_time = $sec + $micro;
if (!isset($_SERVER['REQUEST_METHOD'])) {
    echo $result->toString() . "\n";
}