| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function test_throw_exception_when_no_loaders() |
||
| 19 | { |
||
| 20 | $this->expectException(\RuntimeException::class); |
||
| 21 | $this->expectExceptionMessage('You must tag at least one service as "bdf_serializer.loader" to use the "bdf_serializer.metadata_factory" service'); |
||
| 22 | $container = new ContainerBuilder(); |
||
| 23 | $container->register('bdf_serializer.metadata_factory'); |
||
| 24 | |||
| 25 | $serializerPass = new SerializerLoaderPass(); |
||
| 26 | $serializerPass->process($container); |
||
| 27 | } |
||
| 52 | } |