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 against phpxmlrpc validator1 (echoStructTest)
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
$options = array(
14
	'debug' => false,
15
	'backend' => 'Php',
16
	'prefix' => 'validator1.'
17
);
18
$client = XML_RPC2_Client::create('http://phpxmlrpc.sourceforge.net/server.php', $options);
19
$arg = array(
20
    'moe' => 5,
21
    'larry' => 6,
22
    'curly' => 8
23
);
24
$result = $client->echoStructTest($arg);
25
var_dump($result);
26
 
27
?>
28
--EXPECT--
29
array(3) {
30
  ["moe"]=>
31
  int(5)
32
  ["larry"]=>
33
  int(6)
34
  ["curly"]=>
35
  int(8)
36
}