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