Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function can_iterate(): void |
||
18 | { |
||
19 | $result = $this->createResultWithItems(2); |
||
20 | |||
21 | $this->assertCount(2, $result); |
||
22 | $this->assertSame([ |
||
23 | [ |
||
24 | 'id' => 1, |
||
25 | 'my_value' => 'value 1', |
||
26 | ], |
||
27 | [ |
||
28 | 'id' => 2, |
||
29 | 'my_value' => 'value 2', |
||
30 | ], |
||
31 | ], \iterator_to_array($result)); |
||
32 | } |
||
71 |
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.