| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 1 | public function testRegisterBundle() |
|
| 27 | { |
||
| 28 | 1 | $kernel = $this->createKernel(); |
|
| 29 | 1 | $kernel->addBundle(HttplugBundle::class); |
|
| 30 | |||
| 31 | 1 | $this->bootKernel(); |
|
| 32 | 1 | $container = $this->getContainer(); |
|
| 33 | |||
| 34 | 1 | $this->assertTrue($container->has('php_translation.adapter.loco')); |
|
| 35 | 1 | $service = $container->get('php_translation.adapter.loco'); |
|
| 36 | 1 | $this->assertInstanceOf(Loco::class, $service); |
|
| 37 | 1 | } |
|
| 38 | } |
||
| 39 |