Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function test_string_response(): void |
||
17 | { |
||
18 | $_SERVER['REQUEST_URI'] = 'https://example.org/uri'; |
||
19 | $_SERVER['REQUEST_METHOD'] = Request::METHOD_GET; |
||
20 | |||
21 | Router::configure(static function (Routes $routes): void { |
||
22 | $routes->get('uri', static fn () => new Response('body')); |
||
1 ignored issue
–
show
|
|||
23 | }); |
||
24 | |||
25 | $this->expectOutputString('body'); |
||
26 | |||
27 | self::assertSame([], $this->headers()); |
||
28 | } |
||
52 |