- add unit test (templates)
[m6w6/ext-http] / tests / ut_HttpRequestPool.phpt
1 --TEST--
2 PHPUnit HttpRequestPool
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcls('HttpRequestPool');
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 HttpRequestPoolTest extends PHPUnit2_Framework_TestCase
18 {
19 function test___construct()
20 {
21 }
22
23 function test___destruct()
24 {
25 }
26
27 function test_attach()
28 {
29 }
30
31 function test_detach()
32 {
33 }
34
35 function test_send()
36 {
37 }
38
39 function test_reset()
40 {
41 }
42
43 function test_socketPerform()
44 {
45 }
46
47 function test_socketSelect()
48 {
49 }
50
51 function test_valid()
52 {
53 }
54
55 function test_current()
56 {
57 }
58
59 function test_key()
60 {
61 }
62
63 function test_next()
64 {
65 }
66
67 function test_rewind()
68 {
69 }
70
71 function test_count()
72 {
73 }
74
75 function test_getAttachedRequests()
76 {
77 }
78
79 function test_getFinishedRequests()
80 {
81 }
82
83
84 }
85
86 $s = new PHPUnit2_Framework_TestSuite('HttpRequestPoolTest');
87 $p = new PHPUnit2_TextUI_ResultPrinter();
88 $p->printResult($s->run(), 0);
89
90 echo "Done\n";
91 ?>
92 --EXPECTF--
93 %sTEST
94
95 Time: 0
96
97 OK (16 tests)
98 Done