- add unit test (templates)
[m6w6/ext-http] / tests / ut_HttpResponse.phpt
1 --TEST--
2 PHPUnit HttpResponse
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcls('HttpResponse');
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 HttpResponseTest extends PHPUnit2_Framework_TestCase
18 {
19 function test_setHeader()
20 {
21 }
22
23 function test_getHeader()
24 {
25 }
26
27 function test_setETag()
28 {
29 }
30
31 function test_getETag()
32 {
33 }
34
35 function test_setLastModified()
36 {
37 }
38
39 function test_getLastModified()
40 {
41 }
42
43 function test_setContentDisposition()
44 {
45 }
46
47 function test_getContentDisposition()
48 {
49 }
50
51 function test_setContentType()
52 {
53 }
54
55 function test_getContentType()
56 {
57 }
58
59 function test_guessContentType()
60 {
61 }
62
63 function test_setCache()
64 {
65 }
66
67 function test_getCache()
68 {
69 }
70
71 function test_setCacheControl()
72 {
73 }
74
75 function test_getCacheControl()
76 {
77 }
78
79 function test_setGzip()
80 {
81 }
82
83 function test_getGzip()
84 {
85 }
86
87 function test_setThrottleDelay()
88 {
89 }
90
91 function test_getThrottleDelay()
92 {
93 }
94
95 function test_setBufferSize()
96 {
97 }
98
99 function test_getBufferSize()
100 {
101 }
102
103 function test_setData()
104 {
105 }
106
107 function test_getData()
108 {
109 }
110
111 function test_setFile()
112 {
113 }
114
115 function test_getFile()
116 {
117 }
118
119 function test_setStream()
120 {
121 }
122
123 function test_getStream()
124 {
125 }
126
127 function test_send()
128 {
129 }
130
131 function test_capture()
132 {
133 }
134
135 function test_redirect()
136 {
137 }
138
139 function test_status()
140 {
141 }
142
143 function test_getRequestHeaders()
144 {
145 }
146
147 function test_getRequestBody()
148 {
149 }
150
151
152 }
153
154 $s = new PHPUnit2_Framework_TestSuite('HttpResponseTest');
155 $p = new PHPUnit2_TextUI_ResultPrinter();
156 $p->printResult($s->run(), 0);
157
158 echo "Done\n";
159 ?>
160 --EXPECTF--
161 %sTEST
162
163 Time: 0
164
165 OK (33 tests)
166 Done