Commit db313d6
Jerome Thayananthajothy
Refactor FetchTest and ResponseTest to improve structure and coverage
- Updated FetchTest to utilize Guzzle's MockHandler for better request simulation.
- Added tests for various HTTP methods, including GET, POST, PUT, DELETE, and PATCH.
- Implemented checks for handling query parameters, form parameters, and custom headers.
- Enhanced error handling tests for request exceptions and response validation.
- Refactored ResponseTest to use PHPUnit's TestCase for improved organization.
- Added comprehensive tests for JSON and XML decoding, status code checkers, and header accessors.
- Improved array access and blob handling in Response class tests.1 parent 8cdf3f9 commit db313d6
File tree
9 files changed
+1700
-676
lines changed- src/Fetch
- Http
- Interfaces
- tests
- Integration
- Unit
9 files changed
+1700
-676
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 189 | | |
198 | 190 | | |
199 | 191 | | |
| |||
209 | 201 | | |
210 | 202 | | |
211 | 203 | | |
212 | | - | |
| 204 | + | |
213 | 205 | | |
214 | 206 | | |
215 | 207 | | |
| |||
225 | 217 | | |
226 | 218 | | |
227 | 219 | | |
228 | | - | |
| 220 | + | |
229 | 221 | | |
230 | 222 | | |
231 | 223 | | |
232 | 224 | | |
233 | 225 | | |
234 | | - | |
| 226 | + | |
235 | 227 | | |
236 | 228 | | |
237 | 229 | | |
| |||
291 | 283 | | |
292 | 284 | | |
293 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
294 | 306 | | |
295 | 307 | | |
296 | 308 | | |
| |||
316 | 328 | | |
317 | 329 | | |
318 | 330 | | |
319 | | - | |
| 331 | + | |
320 | 332 | | |
321 | 333 | | |
322 | 334 | | |
| |||
633 | 645 | | |
634 | 646 | | |
635 | 647 | | |
636 | | - | |
637 | | - | |
| 648 | + | |
| 649 | + | |
638 | 650 | | |
639 | 651 | | |
640 | 652 | | |
| |||
0 commit comments