Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | public function testFactory(): void |
||
13 | { |
||
14 | $request = (new RequestFactory())->createRequest('get', (new UriFactory)->createUri('http://localhost:8021')); |
||
15 | self::assertStringEndsWith('GET', $request->getMethod()); |
||
16 | self::assertArrayHasKey('host', $request->getHeaders()); |
||
17 | self::assertStringEndsWith('localhost', $request->getHeaderLine('host')); |
||
18 | } |
||
33 |