1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00
ext-pq/tests/stm_props001.phpt
2014-12-12 01:47:01 +00:00

33 lines
489 B
PHP

--TEST--
Statement properties
--SKIPIF--
<?php
include "_skipif.inc";
?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$n = 'props';
$q = 'SELECT $1, $2, $3';
$t = array(pq\Types::BOOL, pq\Types::INT4, pq\Types::TEXT);
$c = new pq\Connection(PQ_DSN);
$s = new pq\Statement($c, $n, $q, $t);
var_dump($c === $s->connection);
var_dump($n === $s->name);
var_dump($q === $s->query);
var_dump($t === $s->types);
?>
Done
--EXPECT--
Test
bool(true)
bool(true)
bool(true)
bool(true)
Done