| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function test_inject_dependencies_in_controllers(): void |
||
| 19 | { |
||
| 20 | $_SERVER['REQUEST_URI'] = 'https://example.org/expected/uri'; |
||
| 21 | $_SERVER['REQUEST_METHOD'] = 'GET'; |
||
| 22 | |||
| 23 | $this->expectOutputString('default-Expected!'); |
||
| 24 | |||
| 25 | Router::configure(static function (Routes $routes, MappingInterfaces $mappingInterfaces): void { |
||
| 26 | $routes->get('expected/uri', FakeControllerWithDependencies::class); |
||
| 27 | $mappingInterfaces->add(NameInterface::class, new Name('Expected!')); |
||
| 28 | }); |
||
| 44 |