Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | $factoryCalls++; |
||
24 | return $wrapped; |
||
25 | }); |
||
26 | |||
27 | $reopeningEm->open(); |
||
28 | |||
29 | $this->assertEquals($shouldRecreate, $factoryCalls === 2); |
||
30 | } |
||
31 | |||
32 | public function provideWrapped(): iterable |
||
33 | { |
||
34 | $createEmMock = function (bool $isOpen): EntityManagerInterface { |
||
35 | $em = $this->prophesize(EntityManagerInterface::class); |
||
45 |