]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - tests/unit/lib/XmlRpcTest.php
php_closing_tag [PSR-2] The closing ?> tag MUST be omitted from files containing...
[SourceForge/phpwiki.git] / tests / unit / lib / XmlRpcTest.php
1 <?php
2 /* Copyright (C) 2007 Reini Urban
3  */
4
5 require_once 'lib/XmlRpcClient.php';
6 require_once 'PHPUnit.php';
7
8 class XmlRpcTest extends phpwiki_TestCase {
9
10     function testSelfVersion() {
11         $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
12         $this->assertTrue(gettype($v), 'int');
13         $this->assertEquals($v, WIKI_XMLRPC_VERSION);
14     }
15
16     function testSelfAPI_v1() {
17         $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
18         $this->assertTrue($v >= 1);
19     }
20
21     /*
22     function testSelfAPI_v2() {
23         $v = wiki_xmlrpc_post("wiki.getRPCVersionSupported");
24         $this->assertTrue($v >= 2);
25     // struct getAttachment( string localpath )
26     }
27     */
28
29     /*
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)
38
39         $this->assertTrue(true);
40     }
41
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);
46     }
47     */
48 }
49
50 // Local Variables:
51 // mode: php
52 // tab-width: 8
53 // c-basic-offset: 4
54 // c-hanging-comment-ender-p: nil
55 // indent-tabs-mode: nil
56 // End: