]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - tests/unit/lib/XmlRpcTest.php
Still not supporting v2
[SourceForge/phpwiki.git] / tests / unit / lib / XmlRpcTest.php
1 <?php
2 rcs_id('$Id: XmlRpcTest.php,v 1.2 2007-05-27 18:56:16 rurban Exp $');
3
4 /* Copyright (C) 2007 Reini Urban
5  */
6
7 require_once 'lib/XmlRpcClient.php';
8 require_once 'PHPUnit.php';
9
10 class XmlRpcTest extends phpwiki_TestCase {
11
12     function testSelfVersion() {
13         $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
14         $this->assertTrue(gettype($v), 'int');
15         $this->assertEquals($v, WIKI_XMLRPC_VERSION);
16     }
17
18     function testSelfAPI_v1() {
19         $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
20         $this->assertTrue($v >= 1);
21     }
22
23     /*
24     function testSelfAPI_v2() {
25         $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
26         $this->assertTrue($v >= 2);
27         // struct getAttachment( string localpath )
28     }
29     */
30
31     /*
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)
40
41         $this->assertTrue(true);
42     }
43
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);
48     }
49     */
50 }
51
52 // (c-file-style: "gnu")
53 // Local Variables:
54 // mode: php
55 // tab-width: 8
56 // c-basic-offset: 4
57 // c-hanging-comment-ender-p: nil
58 // indent-tabs-mode: nil
59 // End:   
60 ?>