Exemplo n.º 1
0
function run_test($server, $debug, $output, $method, $args)
{
    echo "<hr>";
    $params = array($args);
    $result = xu_rpc_http_concise(array(method => $method, args => $params, host => $server[host], uri => $server[uri], port => $server[port], debug => $debug, output => $output));
    check_if_matches($method, $args, $result);
    echo "</hr>";
    flush();
}
Exemplo n.º 2
0
function run_test($server, $debug, $output, $method, $args = '', $expected = '')
{
    global $HTTP_GET_VARS;
    echo "<hr>";
    if (!is_array($args)) {
        $params = $args ? array($args) : array();
    } else {
        $params = $args;
    }
    if (!empty($HTTP_GET_VARS['start_debug'])) {
        // zend ide support
        $server['uri'] .= "?start_debug=1";
    }
    $result = xu_rpc_http_concise(array('method' => $method, 'args' => $params, 'host' => $server['host'], 'uri' => $server['uri'], 'port' => $server['port'], 'debug' => $debug, 'output' => $output));
    check_if_matches($method, $expected, $result);
    echo "</hr>";
    flush();
}