| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 25 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 11 | public function testGetPackageInfo()  | 
            ||
| 12 |     { | 
            ||
| 13 | $loader = $this->getMockBuilder(ComposerLoader::class)->setMethods(['getLock'])->getMock();  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 14 |         $loader->method('getLock')->willReturn(json_decode(<<<LOCK | 
            ||
| 15 | { | 
            ||
| 16 | "packages": [  | 
            ||
| 17 |         { | 
            ||
| 18 | "name": "fake/package",  | 
            ||
| 19 | "description": "A faux package from a mocked composer.lock for testing purposes",  | 
            ||
| 20 | "version": "1.0.0"  | 
            ||
| 21 | }  | 
            ||
| 22 | ]  | 
            ||
| 23 | }  | 
            ||
| 24 | LOCK  | 
            ||
| 25 | ));  | 
            ||
| 26 | $processor = new UpdatePackageInfo;  | 
            ||
| 27 | $output = $processor->getPackageInfo($loader->getLock()->packages);  | 
            ||
| 28 |         $this->assertInternalType('array', $output); | 
            ||
| 29 | $this->assertCount(1, $output);  | 
            ||
| 30 | $this->assertSame([  | 
            ||
| 31 | "Name" => "fake/package",  | 
            ||
| 32 | "Description" => "A faux package from a mocked composer.lock for testing purposes",  | 
            ||
| 33 | "Version" => "1.0.0"  | 
            ||
| 34 | ], $output[0]);  | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 | 
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.