Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testGetPackageInfo() |
||
12 | { |
||
13 | $loader = new ComposerLoader(__DIR__); |
||
14 | $processor = new UpdatePackageInfo; |
||
15 | $output = $processor->getPackageInfo($loader->getLock()->packages); |
||
16 | $this->assertTrue(is_array($output)); |
||
|
|||
17 | $this->assertCount(1, $output); |
||
18 | $this->assertArrayHasKey('Name', $output[0]); |
||
19 | $this->assertArrayHasKey('Description', $output[0]); |
||
20 | $this->assertArrayHasKey('Version', $output[0]); |
||
21 | $this->assertEquals('fake/package', $output[0]['Name']); |
||
22 | } |
||
23 | } |
||
24 |
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.