Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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