- improve internal array handling
[m6w6/ext-http] / tests / ut_HttpRequest.phpt
1 --TEST--
2 PHPUnit HttpRequest
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcls('HttpRequest');
7 skipif(!@include 'PHPUnit2/Framework/TestCase.php', 'need PHPUnit2');
8 ?>
9 --FILE--
10 <?php
11 echo "-TEST\n";
12
13 error_reporting(E_ALL);
14 ini_set('html_errors', 0);
15
16 require_once 'PHPUnit2/Framework/TestSuite.php';
17 require_once 'PHPUnit2/Framework/TestCase.php';
18 require_once 'PHPUnit2/TextUI/ResultPrinter.php';
19
20 class HttpRequestTest extends PHPUnit2_Framework_TestCase
21 {
22 function test___construct()
23 {
24 }
25
26 function test___destruct()
27 {
28 }
29
30 function test_setOptions()
31 {
32 }
33
34 function test_getOptions()
35 {
36 }
37
38 function test_setSslOptions()
39 {
40 }
41
42 function test_getSslOptions()
43 {
44 }
45
46 function test_addHeaders()
47 {
48 }
49
50 function test_getHeaders()
51 {
52 }
53
54 function test_setHeaders()
55 {
56 }
57
58 function test_addCookies()
59 {
60 }
61
62 function test_getCookies()
63 {
64 }
65
66 function test_setCookies()
67 {
68 }
69
70 function test_setMethod()
71 {
72 }
73
74 function test_getMethod()
75 {
76 }
77
78 function test_setUrl()
79 {
80 }
81
82 function test_getUrl()
83 {
84 }
85
86 function test_setContentType()
87 {
88 }
89
90 function test_getContentType()
91 {
92 }
93
94 function test_setQueryData()
95 {
96 }
97
98 function test_getQueryData()
99 {
100 }
101
102 function test_addQueryData()
103 {
104 }
105
106 function test_setPostFields()
107 {
108 }
109
110 function test_getPostFields()
111 {
112 }
113
114 function test_addPostFields()
115 {
116 }
117
118 function test_setRawPostData()
119 {
120 }
121
122 function test_getRawPostData()
123 {
124 }
125
126 function test_addRawPostData()
127 {
128 }
129
130 function test_setPostFiles()
131 {
132 }
133
134 function test_addPostFile()
135 {
136 }
137
138 function test_getPostFiles()
139 {
140 }
141
142 function test_setPutFile()
143 {
144 }
145
146 function test_getPutFile()
147 {
148 }
149
150 function test_send()
151 {
152 }
153
154 function test_getResponseData()
155 {
156 }
157
158 function test_getResponseHeader()
159 {
160 }
161
162 function test_getResponseCookie()
163 {
164 }
165
166 function test_getResponseCode()
167 {
168 }
169
170 function test_getResponseBody()
171 {
172 }
173
174 function test_getResponseInfo()
175 {
176 }
177
178 function test_getResponseMessage()
179 {
180 }
181
182 function test_getRequestMessage()
183 {
184 }
185
186 function test_getHistory()
187 {
188 }
189
190 function test_clearHistory()
191 {
192 }
193
194 function test_get()
195 {
196 }
197
198 function test_head()
199 {
200 }
201
202 function test_postData()
203 {
204 }
205
206 function test_postFields()
207 {
208 }
209
210 function test_putFile()
211 {
212 }
213
214 function test_putStream()
215 {
216 }
217
218 function test_methodRegister()
219 {
220 }
221
222 function test_methodUnregister()
223 {
224 }
225
226 function test_methodName()
227 {
228 }
229
230 function test_methodExists()
231 {
232 }
233
234
235 }
236
237 $s = new PHPUnit2_Framework_TestSuite('HttpRequestTest');
238 $p = new PHPUnit2_TextUI_ResultPrinter();
239 $p->printResult($s->run(), 0);
240
241 echo "Done\n";
242 ?>
243 --EXPECTF--
244 %sTEST
245
246
247 Time: 0
248
249 OK (53 tests)
250 Done