| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 25 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 36 | public function testInvoke() : void  | 
            ||
| 37 |     { | 
            ||
| 38 | $options = [  | 
            ||
| 39 | 'target_class' => 'Foo\Bar',  | 
            ||
| 40 | 'fields' => ['test'],  | 
            ||
| 41 | ];  | 
            ||
| 42 | |||
| 43 | $repository = $this->prophesize(ObjectRepository::class);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 44 | $objectManager = $this->prophesize(ObjectManager::class);  | 
            ||
| 45 |         $objectManager->getRepository('Foo\Bar') | 
            ||
| 46 | ->shouldBeCalled()  | 
            ||
| 47 | ->willReturn($repository->reveal());  | 
            ||
| 48 | |||
| 49 | $container = $this->prophesize(ContainerInterface::class);  | 
            ||
| 50 |         $container->get('doctrine.entitymanager.orm_default') | 
            ||
| 51 | ->shouldBeCalled()  | 
            ||
| 52 | ->willReturn($objectManager->reveal());  | 
            ||
| 53 | |||
| 54 | $instance = $this->object->__invoke(  | 
            ||
| 55 | $container->reveal(),  | 
            ||
| 56 | UniqueObject::class,  | 
            ||
| 57 | $options  | 
            ||
| 58 | );  | 
            ||
| 59 | $this->assertInstanceOf(UniqueObject::class, $instance);  | 
            ||
| 60 | }  | 
            ||
| 61 | }  | 
            ||
| 62 | 
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.