| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function provideWrapped(): iterable |
||
| 36 | { |
||
| 37 | $createEmMock = function (bool $isOpen): EntityManagerInterface { |
||
| 38 | $em = $this->prophesize(EntityManagerInterface::class); |
||
| 39 | $em->isOpen()->willReturn($isOpen); |
||
| 40 | |||
| 41 | return $em->reveal(); |
||
| 42 | }; |
||
| 43 | |||
| 44 | yield [$createEmMock(true), false]; |
||
| 45 | yield [$createEmMock(false), true]; |
||
| 46 | } |
||
| 48 |