X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fcallback001.phpt;fp=tests%2Fcallback001.phpt;h=a47b4c22142324bc1591bffef9ef0e5263510e8f;hp=0000000000000000000000000000000000000000;hb=a06db6d217fc8ba0fd9b8273a9e595477d59afcc;hpb=0d8fc412a6fdd65f6bc89ae77b132ca119e00c6c diff --git a/tests/callback001.phpt b/tests/callback001.phpt new file mode 100644 index 0000000..a47b4c2 --- /dev/null +++ b/tests/callback001.phpt @@ -0,0 +1,37 @@ +--TEST-- +callback sanity +--SKIPIF-- + +--FILE-- +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===