| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function testFactoryStatementIteration() |
||
| 46 | { |
||
| 47 | $pdo = $this->pdo; |
||
| 48 | $factory = function () use ($pdo) { return $pdo->query('select name from entries limit 0, 2'); }; |
||
| 49 | $it = new PDOStatementIterator($factory, PDO::FETCH_NUM); |
||
| 50 | $this->assertEquals(array(array('0'), array('1')), iterator_to_array($it)); |
||
| 51 | $this->assertEquals(array(array('0'), array('1')), iterator_to_array($it)); |
||
| 52 | } |
||
| 53 | } |
||
| 55 |