Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testAddonToJson() |
||
23 | { |
||
24 | $addonToArray = new AddonToArray(); |
||
25 | /** @var Addon $addon */ |
||
26 | $addon = $this->objFromFixture('Addon', 'addon_a'); |
||
27 | $result = $addonToArray->convert($addon); |
||
28 | |||
29 | |||
30 | $this->assertEquals('sminnee/test-package', $result['Name']); |
||
|
|||
31 | $this->assertInstanceof('Datetime', $result['Released']); |
||
32 | $this->assertEquals([ 'Name' => 'good_code_coverage', 'Value' => 0 ], $result['RatingDetails'][0]); |
||
33 | $this->assertEquals(2, sizeof($result['Versions'])); |
||
34 | $this->assertEquals('1.4.2.0', $result['Versions'][0]['Version']); |
||
35 | $this->assertEquals( |
||
36 | [[ 'Version' => '3.6', 'Major' => 3, 'Minor' => 6 ]], |
||
37 | $result['Versions'][0]['CompatibleVersions'] |
||
38 | ); |
||
39 | $this->assertEquals( |
||
40 | [[ |
||
41 | 'Name' => 'Uncle Cheese', |
||
42 | 'Email' => '[email protected]', |
||
43 | 'Homepage' => 'http://leftandmain.com', |
||
44 | ]], |
||
45 | $result['Versions'][0]['Authors'] |
||
46 | ); |
||
47 | } |
||
48 | } |
||
49 |
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.