1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00
ext-pq/tests/callback001.phpt
2016-05-03 14:21:15 +02:00

38 lines
438 B
PHP

--TEST--
callback sanity
--SKIPIF--
<?php include "_skipif.inc"; ?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$c->execAsync("select 1; select 2", function($r) {
print_r($r->fetchAll());
});
$c->exec("select 3");
?>
===DONE===
--EXPECT--
Test
Array
(
[0] => Array
(
[0] => 1
)
)
Array
(
[0] => Array
(
[0] => 2
)
)
===DONE===