| Total Complexity | 2 | 
| Total Lines | 38 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | class SerializerLoaderPassTest extends TestCase | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * | ||
| 17 | */ | ||
| 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 | } | ||
| 28 | |||
| 29 | /** | ||
| 30 | * | ||
| 31 | */ | ||
| 32 | public function test_services_are_ordered_according_to_priority() | ||
| 51 | } | ||
| 52 | } |