6 checkcls('HttpResponse');
7 skipif(!@include 'PHPUnit2/Framework/TestCase.php', 'need PHPUnit2');
13 require_once 'PHPUnit2/Framework/TestSuite.php';
14 require_once 'PHPUnit2/Framework/TestCase.php';
15 require_once 'PHPUnit2/TextUI/ResultPrinter.php';
17 class HttpResponseTest extends PHPUnit2_Framework_TestCase
19 function test_setHeader()
23 function test_getHeader()
27 function test_setETag()
31 function test_getETag()
35 function test_setLastModified()
39 function test_getLastModified()
43 function test_setContentDisposition()
47 function test_getContentDisposition()
51 function test_setContentType()
55 function test_getContentType()
59 function test_guessContentType()
63 function test_setCache()
67 function test_getCache()
71 function test_setCacheControl()
75 function test_getCacheControl()
79 function test_setGzip()
83 function test_getGzip()
87 function test_setThrottleDelay()
91 function test_getThrottleDelay()
95 function test_setBufferSize()
99 function test_getBufferSize()
103 function test_setData()
107 function test_getData()
111 function test_setFile()
115 function test_getFile()
119 function test_setStream()
123 function test_getStream()
131 function test_capture()
135 function test_redirect()
139 function test_status()
143 function test_getRequestHeaders()
147 function test_getRequestBody()
154 $s = new PHPUnit2_Framework_TestSuite('HttpResponseTest');
155 $p = new PHPUnit2_TextUI_ResultPrinter();
156 $p->printResult($s->run(), 0);