commit | author | age
|
2207d6
|
1 |
# XMLRPC |
W |
2 |
|
|
3 |
|
|
4 |
Module for testing XMLRPC WebService. |
|
5 |
|
|
6 |
This module can be used either with frameworks or PHPBrowser. |
|
7 |
It tries to guess the framework is is attached to. |
|
8 |
|
|
9 |
Whether framework is used it operates via standard framework modules. |
|
10 |
Otherwise sends raw HTTP requests to url via PHPBrowser. |
|
11 |
|
|
12 |
## Requirements |
|
13 |
|
|
14 |
* Module requires installed php_xmlrpc extension |
|
15 |
|
|
16 |
## Status |
|
17 |
|
|
18 |
* Maintainer: **tiger-seo** |
|
19 |
* Stability: **beta** |
|
20 |
* Contact: tiger.seo@gmail.com |
|
21 |
|
|
22 |
## Configuration |
|
23 |
|
|
24 |
* url *optional* - the url of api |
|
25 |
|
|
26 |
## Public Properties |
|
27 |
|
|
28 |
* headers - array of headers going to be sent. |
|
29 |
* params - array of sent data |
|
30 |
* response - last response (string) |
|
31 |
|
|
32 |
@since 1.1.5 |
|
33 |
@author tiger.seo@gmail.com |
|
34 |
|
|
35 |
## Actions |
|
36 |
|
|
37 |
### haveHttpHeader |
|
38 |
|
|
39 |
Sets HTTP header |
|
40 |
|
|
41 |
* `param string` $name |
|
42 |
* `param string` $value |
|
43 |
|
|
44 |
|
|
45 |
### seeResponseCodeIs |
|
46 |
|
|
47 |
Checks response code. |
|
48 |
|
|
49 |
* `param` $num |
|
50 |
|
|
51 |
|
|
52 |
### seeResponseIsXMLRPC |
|
53 |
|
|
54 |
Checks weather last response was valid XMLRPC. |
|
55 |
This is done with xmlrpc_decode function. |
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
### sendXMLRPCMethodCall |
|
60 |
|
|
61 |
Sends a XMLRPC method call to remote XMLRPC-server. |
|
62 |
|
|
63 |
* `param string` $methodName |
|
64 |
* `param array` $parameters |
|
65 |
|
|
66 |
<p> </p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/Codeception/tree/2.5/src/Codeception/Module/XMLRPC.php">Help us to improve documentation. Edit module reference</a></div> |