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

32 lines
565 B
Plaintext
Raw Normal View History

2013-02-14 14:54:22 +01:00
--TEST--
types functionality
--SKIPIF--
<?php include "_skipif.inc"; ?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
2013-05-14 13:09:23 +02:00
$t = new pq\Types($c, array("pg_catalog", "public"));
2013-02-14 14:54:22 +01:00
var_dump($t->connection === $c);
var_dump(isset($t["int4"]), empty($t["int4"]));
var_dump(isset($t["whatthahell"]), empty($t["whatthahell"]));
var_dump(isset($t[25]), empty($t[25]));
var_dump(isset($t[0]), empty($t[0]));
?>
DONE
--EXPECT--
Test
bool(true)
bool(true)
bool(false)
bool(false)
bool(true)
bool(true)
bool(false)
bool(false)
bool(true)
DONE