1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00
ext-pq/tests/crash_result_iterator.phpt
Michael Wallner c223e1c70b add tests
2014-11-25 13:43:48 +01:00

42 lines
432 B
PHP

--TEST--
crash result iterator
--SKIPIF--
<?php
include "_skipif.inc";
?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$conn = new pq\Connection(PQ_DSN);
$sql = "
SELECT id
FROM generate_series(1,3) id
ORDER BY id ASC
LIMIT 5
";
foreach ($conn->exec($sql) as $row) {
var_dump($row);
}
?>
===DONE===
--EXPECT--
Test
array(1) {
[0]=>
int(1)
}
array(1) {
[0]=>
int(2)
}
array(1) {
[0]=>
int(3)
}
===DONE===