| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testDefaultRegistration() |
||
| 21 | { |
||
| 22 | $controllers = [ |
||
| 23 | 'Jgut\Slim\Controller\Base', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | $container = new Container(); |
||
| 27 | foreach (Resolver::resolve($controllers) as $controller => $callback) { |
||
| 28 | $container[$controller] = $callback; |
||
| 29 | } |
||
| 30 | |||
| 31 | static::assertInstanceOf( |
||
| 32 | 'Jgut\Slim\Controller\Base', |
||
| 33 | $container->get('Jgut\Slim\Controller\Base') |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |