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