Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function decoratesEntityManagerFromCallback(): void |
||
20 | { |
||
21 | $em = $this->prophesize(EntityManagerInterface::class)->reveal(); |
||
22 | $result = (new ReopeningEntityManagerDelegator())(new ServiceManager(), '', fn () => $em); |
||
23 | |||
24 | $ref = new ReflectionObject($result); |
||
25 | $prop = $ref->getProperty('wrapped'); |
||
26 | $prop->setAccessible(true); |
||
27 | |||
28 | $this->assertSame($em, $prop->getValue($result)); |
||
29 | } |
||
31 |