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