| Total Lines | 16 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function setUp(): void |
||
| 17 | { |
||
| 18 | $container = new class implements ContainerInterface |
||
| 19 | { |
||
| 20 | public function has($id) |
||
| 21 | { |
||
| 22 | return class_exists($id); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function get($id) |
||
| 26 | { |
||
| 27 | return new $id(); |
||
| 28 | } |
||
| 29 | }; |
||
| 30 | |||
| 31 | $this->factory = new LazyMiddlewareFactory($container); |
||
| 32 | } |
||
| 41 |