1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-26 20:04:44 +01:00
ext-pq/tests/basic002.phpt
Michael Wallner cb69b6218d finish port
2015-08-19 18:40:34 +02:00

26 lines
413 B
PHP

--TEST--
basic functionality
--SKIPIF--
<?php include "_skipif.inc"; ?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$t = new pq\Types($c);
$s = $c->prepare("test1", "SELECT \$1",array($t["text"]->oid));
$r = $s->exec(array("fooo"));
printf("%s\n", $r->errorMessage);
var_dump($r->fetchCol($val));
var_dump($val);
?>
DONE
--EXPECT--
Test
bool(true)
string(4) "fooo"
DONE