1 | <?php |
||
11 | class ResponseConvertor |
||
12 | { |
||
13 | /** |
||
14 | * Convert a PSR-7 response to a codeception response |
||
15 | * |
||
16 | * @param ResponseInterface $psrResponse |
||
17 | * @return BrowserKitResponse |
||
18 | */ |
||
19 | 1 | public function convert(ResponseInterface $psrResponse) |
|
27 | |||
28 | /** |
||
29 | * Flatten headers |
||
30 | * |
||
31 | * @param array $headers |
||
32 | * @return array |
||
33 | */ |
||
34 | 1 | protected function flattenHeaders(array $headers) |
|
42 | } |
||
43 |