| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class LazyMiddlewareTest extends TestCase |
||
| 13 | { |
||
| 14 | /** @var ContainerInterface */ |
||
| 15 | private $container; |
||
| 16 | |||
| 17 | public function setUp() |
||
| 18 | { |
||
| 19 | $this->container = new class implements ContainerInterface |
||
| 20 | { |
||
| 21 | public function has($id) |
||
| 24 | } |
||
| 25 | |||
| 26 | public function get($id) |
||
| 27 | { |
||
| 28 | return new $id(); |
||
| 29 | } |
||
| 30 | }; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testDefersToMiddlewareImplemention(): void |
||
| 44 | } |
||
| 45 | } |
||
| 46 |