| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function test_inject_controller_with_request_dependency(): void |
||
| 32 | { |
||
| 33 | $_SERVER['REQUEST_URI'] = 'https://example.org/expected'; |
||
| 34 | $_SERVER['REQUEST_METHOD'] = 'GET'; |
||
| 35 | $_GET['name'] = 'Katarn'; |
||
| 36 | |||
| 37 | $this->expectOutputString('Katarn'); |
||
| 38 | |||
| 39 | Router::configure(static function (Routes $routes): void { |
||
| 40 | $routes->get('expected', FakeControllerWithRequest::class); |
||
| 41 | }); |
||
| 44 |