summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/11pg_meta_data.phpt
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-10-02 02:11:27 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-10-02 02:11:27 +0000
commitf8f11ac0a2566f100d525fc2830b31ce20ac8f0e (patch)
tree24df307520a5309bdab3235aa723c9eb6271bc7b /ext/pgsql/tests/11pg_meta_data.phpt
parentfc721174c830d5c87b8fc2c08c294ae7db750ee5 (diff)
downloadphp-git-f8f11ac0a2566f100d525fc2830b31ce20ac8f0e.tar.gz
Rename pg_metadata() to pg_meta_data() to confirm naming standard
Diffstat (limited to 'ext/pgsql/tests/11pg_meta_data.phpt')
-rw-r--r--ext/pgsql/tests/11pg_meta_data.phpt50
1 files changed, 50 insertions, 0 deletions
diff --git a/ext/pgsql/tests/11pg_meta_data.phpt b/ext/pgsql/tests/11pg_meta_data.phpt
new file mode 100644
index 0000000000..85e2d2cf07
--- /dev/null
+++ b/ext/pgsql/tests/11pg_meta_data.phpt
@@ -0,0 +1,50 @@
+--TEST--
+PostgreSQL pg_metadata()
+--SKIPIF--
+<?php include("skipif.inc"); ?>
+--FILE--
+<?php
+include("pg_meta_data.inc");
+?>
+--EXPECT--
+array(3) {
+ ["num"]=>
+ array(5) {
+ ["num"]=>
+ int(1)
+ ["type"]=>
+ string(4) "int4"
+ ["len"]=>
+ int(4)
+ ["not null"]=>
+ bool(false)
+ ["has default"]=>
+ bool(false)
+ }
+ ["str"]=>
+ array(5) {
+ ["num"]=>
+ int(2)
+ ["type"]=>
+ string(4) "text"
+ ["len"]=>
+ int(-1)
+ ["not null"]=>
+ bool(false)
+ ["has default"]=>
+ bool(false)
+ }
+ ["bin"]=>
+ array(5) {
+ ["num"]=>
+ int(3)
+ ["type"]=>
+ string(5) "bytea"
+ ["len"]=>
+ int(-1)
+ ["not null"]=>
+ bool(false)
+ ["has default"]=>
+ bool(false)
+ }
+}