| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function testGetHeaderStrings() |
||
| 11 | { |
||
| 12 | $headers = [ |
||
| 13 | 'User-Agent' => 'Palmtree/Curl', |
||
| 14 | 'Host' => 'example.org', |
||
| 15 | 'Cache-Control' => 'no-cache', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | $request = new Request(); |
||
| 19 | |||
| 20 | $request->setHeaders($headers); |
||
| 21 | |||
| 22 | $expected = [ |
||
| 23 | 'User-Agent: Palmtree/Curl', |
||
| 24 | 'Host: example.org', |
||
| 25 | 'Cache-Control: no-cache', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | $this->assertEquals($expected, $request->getHeaderStrings()); |
||
| 29 | } |
||
| 31 |