Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function properDependenciesArePassed(): void |
||
29 | { |
||
30 | $callbackInvoked = false; |
||
31 | $callback = function () use (&$callbackInvoked): callable { |
||
32 | $callbackInvoked = true; |
||
33 | |||
34 | return function (): void { |
||
35 | }; |
||
36 | }; |
||
37 | |||
38 | $em = $this->prophesize(ReopeningEntityManagerInterface::class); |
||
39 | $getEm = $this->container->get('em')->willReturn($em->reveal()); |
||
40 | |||
41 | ($this->delegator)($this->container->reveal(), '', $callback); |
||
42 | |||
43 | self::assertTrue($callbackInvoked); |
||
44 | $getEm->shouldHaveBeenCalledOnce(); |
||
45 | } |
||
47 |