- add unit test (templates)
[m6w6/ext-http] / tests / ut_HttpUtil.phpt
1 --TEST--
2 PHPUnit HttpUtil
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcls('HttpUtil');
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 HttpUtilTest extends PHPUnit2_Framework_TestCase
18 {
19 function test_date()
20 {
21 }
22
23 function test_buildUri()
24 {
25 }
26
27 function test_negotiateLanguage()
28 {
29 }
30
31 function test_negotiateCharset()
32 {
33 }
34
35 function test_negotiateContentType()
36 {
37 }
38
39 function test_matchModified()
40 {
41 }
42
43 function test_matchEtag()
44 {
45 }
46
47 function test_matchRequestHeader()
48 {
49 }
50
51 function test_parseMessage()
52 {
53 }
54
55 function test_parseHeaders()
56 {
57 }
58
59 function test_chunkedDecode()
60 {
61 }
62
63 function test_gzEncode()
64 {
65 }
66
67 function test_gzDecode()
68 {
69 }
70
71 function test_deflate()
72 {
73 }
74
75 function test_inflate()
76 {
77 }
78
79 function test_compress()
80 {
81 }
82
83 function test_uncompress()
84 {
85 }
86
87 function test_support()
88 {
89 }
90
91
92 }
93
94 $s = new PHPUnit2_Framework_TestSuite('HttpUtilTest');
95 $p = new PHPUnit2_TextUI_ResultPrinter();
96 $p->printResult($s->run(), 0);
97
98 echo "Done\n";
99 ?>
100 --EXPECTF--
101 %sTEST
102
103 Time: 0
104
105 OK (18 tests)
106 Done