| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ConnectionFactoryTest extends TestCase |
||
| 17 | { |
||
| 18 | use ProphecyTrait; |
||
| 19 | |||
| 20 | private ConnectionFactory $factory; |
||
| 21 | private ObjectProphecy $container; |
||
| 22 | private ObjectProphecy $em; |
||
| 23 | |||
| 24 | public function setUp(): void |
||
| 25 | { |
||
| 26 | $this->container = $this->prophesize(ContainerInterface::class); |
||
| 27 | $this->em = $this->prophesize(EntityManagerInterface::class); |
||
| 28 | $this->container->get(EntityManager::class)->willReturn($this->em->reveal()); |
||
| 29 | |||
| 30 | $this->factory = new ConnectionFactory(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** @test */ |
||
| 34 | public function properServiceFallbackOccursWhenInvoked(): void |
||
| 44 | } |
||
| 45 | } |
||
| 46 |