1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00
ext-pq/tests/callback001.phpt

38 lines
438 B
Plaintext
Raw Normal View History

--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===