1 | <?php |
||
18 | class MessageFactoryTest extends \PHPUnit_Framework_TestCase |
||
19 | { |
||
20 | |||
21 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
22 | /** ++++++++++++++ TESTS ++++++++++++++ **/ |
||
23 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
24 | |||
25 | /** |
||
26 | * Test factory method creates message factory. |
||
27 | * |
||
28 | * @access public |
||
29 | * @return void |
||
30 | */ |
||
31 | public function testFactoryMethodCreatesMessageFactory() |
||
35 | |||
36 | /** |
||
37 | * Test can create request. |
||
38 | * |
||
39 | * @access public |
||
40 | * @return void |
||
41 | */ |
||
42 | public function testCanCreateRequest() |
||
48 | |||
49 | /** |
||
50 | * Test can create request with URL. |
||
51 | * |
||
52 | * @access public |
||
53 | * @return void |
||
54 | */ |
||
55 | public function testCanCreateRequestWithUrl() |
||
64 | |||
65 | /** |
||
66 | * Test can create request with method. |
||
67 | * |
||
68 | * @access public |
||
69 | * @return void |
||
70 | */ |
||
71 | public function testCanCreateRequestWithMethod() |
||
80 | |||
81 | /** |
||
82 | * Test can create request with timeout. |
||
83 | * |
||
84 | * @access public |
||
85 | * @return void |
||
86 | */ |
||
87 | public function testCanCreateRequestWithTimeout() |
||
96 | |||
97 | /** |
||
98 | * Test can create capture request. |
||
99 | * |
||
100 | * @access public |
||
101 | * @return void |
||
102 | */ |
||
103 | public function testCanCreateCaptureRequest() |
||
109 | |||
110 | /** |
||
111 | * Test can create capture request with URL. |
||
112 | * |
||
113 | * @access public |
||
114 | * @return void |
||
115 | */ |
||
116 | public function testCanCreateCaptureRequestWithUrl() |
||
125 | |||
126 | /** |
||
127 | * Test can create capture request |
||
128 | * with method. |
||
129 | * |
||
130 | * @access public |
||
131 | * @return void |
||
132 | */ |
||
133 | public function testCanCreateCaptureRequestWithMethod() |
||
142 | |||
143 | /** |
||
144 | * Test can create capture request with timeout. |
||
145 | * |
||
146 | * @access public |
||
147 | * @return void |
||
148 | */ |
||
149 | public function testCanCreateCaptureRequestWithTimeout() |
||
158 | |||
159 | /** |
||
160 | * Test can create response. |
||
161 | * |
||
162 | * @access public |
||
163 | * @return void |
||
164 | */ |
||
165 | public function testCanCreateResponse() |
||
171 | |||
172 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
173 | /** ++++++++++ TEST ENTITIES ++++++++++ **/ |
||
174 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
175 | |||
176 | /** |
||
177 | * Get message factory instance. |
||
178 | * |
||
179 | * @access protected |
||
180 | * @return \JonnyW\PhantomJs\Http\MessageFactory |
||
181 | */ |
||
182 | protected function getMessageFactory() |
||
188 | } |
||
189 |