| Total Complexity | 4 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ORMQueryResultFieldsTest extends ResultTest |
||
| 11 | { |
||
| 12 | use HasEntityManager; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @test |
||
| 16 | */ |
||
| 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 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @test |
||
| 36 | */ |
||
| 37 | public function can_batch_iterate(): void |
||
| 52 | } |
||
| 53 | |||
| 54 | protected function createResultWithItems(int $count): Result |
||
| 61 | } |
||
| 62 | |||
| 63 | protected function getExpectedValueAtPosition(int $position) |
||
| 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.