2 /* Copyright (C) 2007 Reini Urban
5 require_once 'lib/XmlRpcClient.php';
6 require_once 'PHPUnit.php';
8 class XmlRpcTest extends phpwiki_TestCase {
10 function testSelfVersion() {
11 $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
12 $this->assertTrue(gettype($v), 'int');
13 $this->assertEquals($v, WIKI_XMLRPC_VERSION);
16 function testSelfAPI_v1() {
17 $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
18 $this->assertTrue($v >= 1);
22 function testSelfAPI_v2() {
23 $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
24 $this->assertTrue($v >= 2);
25 // struct getAttachment( string localpath )
30 function testSelfAPI_private() {
31 // struct getUploadedFileInfo( string localpath )
32 // boolean wiki.mailPasswordToUser ( username )
33 // array wiki.titleSearch(String substring [, String option = "0"])
34 // array wiki.listPlugins()
35 // String wiki.getPluginSynopsis(String plugin)
36 // array wiki.listRelations([ Integer option = 1 ])
37 // array wiki.callPlugin(String name, String args)
39 $this->assertTrue(true);
42 function testSelfAPI_planned() {
43 // String pingback.ping(String sourceURI, String targetURI)
44 // boolean wiki.rssPleaseNotify ( notifyProcedure, port, path, protocol, urlList )
45 $this->assertTrue(true);
54 // c-hanging-comment-ender-p: nil
55 // indent-tabs-mode: nil