| Total Complexity | 2 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class PrimeConnectionFactoryPassTest extends TestCase |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * |
||
| 18 | */ |
||
| 19 | public function test_throw_exception_when_no_loaders() |
||
| 20 | { |
||
| 21 | $this->expectException(\RuntimeException::class); |
||
| 22 | $this->expectExceptionMessage('You must tag at least one service as "bdf_prime.connection_factory" to use the "'.ChainFactory::class.'" service'); |
||
| 23 | $container = new ContainerBuilder(); |
||
| 24 | $container->register(ChainFactory::class); |
||
| 25 | |||
| 26 | $serializerPass = new PrimeConnectionFactoryPass(); |
||
| 27 | $serializerPass->process($container); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * |
||
| 32 | */ |
||
| 33 | public function test_services_are_ordered_according_to_priority() |
||
| 52 | } |
||
| 53 | } |