4 /* Copyright (C) 2007 Reini Urban
7 require_once 'lib/XmlRpcClient.php';
8 require_once 'PHPUnit.php';
10 class XmlRpcTest extends phpwiki_TestCase {
12 function testSelfVersion() {
13 $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
14 $this->assertTrue(gettype($v), 'int');
15 $this->assertEquals($v, WIKI_XMLRPC_VERSION);
18 function testSelfAPI_v1() {
19 $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
20 $this->assertTrue($v >= 1);
24 function testSelfAPI_v2() {
25 $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
26 $this->assertTrue($v >= 2);
27 // struct getAttachment( string localpath )
32 function testSelfAPI_private() {
33 // struct getUploadedFileInfo( string localpath )
34 // boolean wiki.mailPasswordToUser ( username )
35 // array wiki.titleSearch(String substring [, String option = "0"])
36 // array wiki.listPlugins()
37 // String wiki.getPluginSynopsis(String plugin)
38 // array wiki.listRelations([ Integer option = 1 ])
39 // array wiki.callPlugin(String name, String args)
41 $this->assertTrue(true);
44 function testSelfAPI_planned() {
45 // String pingback.ping(String sourceURI, String targetURI)
46 // boolean wiki.rssPleaseNotify ( notifyProcedure, port, path, protocol, urlList )
47 $this->assertTrue(true);
52 // (c-file-style: "gnu")
57 // c-hanging-comment-ender-p: nil
58 // indent-tabs-mode: nil