Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
XMLRPCext Backend XML-RPC client with transport error
3
--SKIPIF--
4
<?php
5
if (!function_exists('xmlrpc_server_create')) {
6
    print "Skip XMLRPC extension unavailable";
7
}
8
if (!function_exists('curl_init')) {
9
    print "Skip CURL extension unavailable";
10
}
11
?>
12
--FILE--
13
<?php
14
set_include_path(realpath(dirname(__FILE__) . '/../../../../') . PATH_SEPARATOR . get_include_path());
15
require_once 'XML/RPC2/Client.php';
16
require_once 'XML/RPC2/Backend.php';
17
XML_RPC2_Backend::setBackend('xmlrpcext');
18
$client = XML_RPC2_Client::create('http://rpc.example.com:1000/', '', null);
19
try {
20
    $client->invalidMethod('World');
21
} catch (XML_RPC2_CurlException $e) {
22
    var_dump($e->getMessage());
23
}
24
?>
25
--EXPECTREGEX--
26
string\(.*\) \"HTTP_Request2_Exception.*