6 checkcls('HttpRequest');
7 skipif(!@include 'PHPUnit2/Framework/TestCase.php', 'need PHPUnit2');
13 error_reporting(E_ALL);
14 ini_set('html_errors', 0);
16 require_once 'PHPUnit2/Framework/TestSuite.php';
17 require_once 'PHPUnit2/Framework/TestCase.php';
18 require_once 'PHPUnit2/TextUI/ResultPrinter.php';
20 class HttpRequestTest extends PHPUnit2_Framework_TestCase
22 function test___construct()
26 function test___destruct()
30 function test_setOptions()
34 function test_getOptions()
38 function test_setSslOptions()
42 function test_getSslOptions()
46 function test_addHeaders()
50 function test_getHeaders()
54 function test_setHeaders()
58 function test_addCookies()
62 function test_getCookies()
66 function test_setCookies()
70 function test_setMethod()
74 function test_getMethod()
78 function test_setUrl()
82 function test_getUrl()
86 function test_setContentType()
90 function test_getContentType()
94 function test_setQueryData()
98 function test_getQueryData()
102 function test_addQueryData()
106 function test_setPostFields()
110 function test_getPostFields()
114 function test_addPostFields()
118 function test_setRawPostData()
122 function test_getRawPostData()
126 function test_addRawPostData()
130 function test_setPostFiles()
134 function test_addPostFile()
138 function test_getPostFiles()
142 function test_setPutFile()
146 function test_getPutFile()
154 function test_getResponseData()
158 function test_getResponseHeader()
162 function test_getResponseCookie()
166 function test_getResponseCode()
170 function test_getResponseBody()
174 function test_getResponseInfo()
178 function test_getResponseMessage()
182 function test_getRequestMessage()
186 function test_getHistory()
190 function test_clearHistory()
202 function test_postData()
206 function test_postFields()
210 function test_putFile()
214 function test_putStream()
218 function test_methodRegister()
222 function test_methodUnregister()
226 function test_methodName()
230 function test_methodExists()
237 $s = new PHPUnit2_Framework_TestSuite('HttpRequestTest');
238 $p = new PHPUnit2_TextUI_ResultPrinter();
239 $p->printResult($s->run(), 0);