| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 20 | public function testTarget(): void |
||
| 21 | { |
||
| 22 | $request = new Request((new UriFactory)->createUri('http://localhost:8021/test/index.php?foo=bar')); |
||
| 23 | self::assertStringEndsWith('/test/index.php?foo=bar', $request->getRequestTarget()); |
||
| 24 | self::assertStringEndsWith('/foo', $request->withRequestTarget('/foo')->getRequestTarget()); |
||
| 25 | } |
||
| 33 |