| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testGettingIteratorDoesNotCallFetch() |
||
| 11 | { |
||
| 12 | $stmt = $this->createMock(Statement::class); |
||
| 13 | $stmt->expects($this->never())->method('fetch'); |
||
| 14 | $stmt->expects($this->never())->method('fetchAll'); |
||
| 15 | $stmt->expects($this->never())->method('fetchColumn'); |
||
| 16 | |||
| 17 | $stmtIterator = new StatementIterator($stmt); |
||
| 18 | $stmtIterator->getIterator(); |
||
| 19 | } |
||
| 20 | |||
| 41 |