| Conditions | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function setUp() |
||
| 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 |