| Total Complexity | 2 | 
| Total Lines | 32 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 1 | 
| 1 | <?php | ||
| 10 | class SerializerLoaderPassTest extends TestCase | ||
| 11 | { | ||
| 12 | public function testThrowExceptionWhenNoLoaders() | ||
| 13 |     { | ||
| 14 | $this->expectException(\RuntimeException::class); | ||
| 15 |         $this->expectExceptionMessage('You must tag at least one service as "bdf_serializer.loader" to use the "bdf_serializer.metadata_factory" service'); | ||
| 16 | $container = new ContainerBuilder(); | ||
| 17 |         $container->register('bdf_serializer.metadata_factory'); | ||
| 18 | |||
| 19 | $serializerPass = new SerializerLoaderPass(); | ||
| 20 | $serializerPass->process($container); | ||
| 21 | } | ||
| 22 | |||
| 23 | public function testServicesAreOrderedAccordingToPriority() | ||
| 42 | } | ||
| 43 | } | ||
| 44 |