6 checkcls('HttpResponse');
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 HttpResponseTest extends PHPUnit2_Framework_TestCase
22 function test_setHeader()
26 function test_getHeader()
30 function test_setETag()
34 function test_getETag()
38 function test_setLastModified()
42 function test_getLastModified()
46 function test_setContentDisposition()
50 function test_getContentDisposition()
54 function test_setContentType()
58 function test_getContentType()
62 function test_guessContentType()
66 function test_setCache()
70 function test_getCache()
74 function test_setCacheControl()
78 function test_getCacheControl()
82 function test_setGzip()
86 function test_getGzip()
90 function test_setThrottleDelay()
94 function test_getThrottleDelay()
98 function test_setBufferSize()
102 function test_getBufferSize()
106 function test_setData()
110 function test_getData()
114 function test_setFile()
118 function test_getFile()
122 function test_setStream()
126 function test_getStream()
134 function test_capture()
138 function test_redirect()
142 function test_status()
146 function test_getRequestHeaders()
150 function test_getRequestBody()
157 $s = new PHPUnit2_Framework_TestSuite('HttpResponseTest');
158 $p = new PHPUnit2_TextUI_ResultPrinter();
159 $p->printResult($s->run(), 0);