summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus M��tt� <magnus@php.net>2005-03-09 05:29:57 +0000
committerMagnus M��tt� <magnus@php.net>2005-03-09 05:29:57 +0000
commit591fb2d97cbe8949097085d24244cd5a82b9d6ed (patch)
treebc7c57ea116cfec33bc439ebaf54a2e4b70801fe
parentde1d8b91f02f8a8c0721bc0d715beba5dd0f978e (diff)
downloadphp-git-591fb2d97cbe8949097085d24244cd5a82b9d6ed.tar.gz
Add one more test.
-rwxr-xr-xext/pdo_sqlite/tests/pdo_022.phpt84
1 files changed, 84 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_022.phpt b/ext/pdo_sqlite/tests/pdo_022.phpt
new file mode 100755
index 0000000000..baab31ea24
--- /dev/null
+++ b/ext/pdo_sqlite/tests/pdo_022.phpt
@@ -0,0 +1,84 @@
+--TEST--
+PDO_SQLite: PDOStatement::getColumnMeta
+--SKIPIF--
+<?php # vim:ft=php
+require_once('skipif.inc'); ?>
+--FILE--
+<?php
+
+require_once('connection.inc');
+require_once('prepare.inc');
+
+require_once($PDO_TESTS . 'pdo_022.inc');
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECT--
+array(7) {
+ ["native_type"]=>
+ string(7) "integer"
+ ["sqlite:decl_type"]=>
+ string(3) "INT"
+ ["flags"]=>
+ array(0) {
+ }
+ ["name"]=>
+ string(2) "id"
+ ["len"]=>
+ int(-1)
+ ["precision"]=>
+ int(0)
+ ["pdo_type"]=>
+ int(2)
+}
+array(7) {
+ ["native_type"]=>
+ string(6) "string"
+ ["sqlite:decl_type"]=>
+ string(11) "VARCHAR(10)"
+ ["flags"]=>
+ array(0) {
+ }
+ ["name"]=>
+ string(3) "val"
+ ["len"]=>
+ int(-1)
+ ["precision"]=>
+ int(0)
+ ["pdo_type"]=>
+ int(2)
+}
+array(7) {
+ ["native_type"]=>
+ string(6) "string"
+ ["sqlite:decl_type"]=>
+ string(11) "VARCHAR(16)"
+ ["flags"]=>
+ array(0) {
+ }
+ ["name"]=>
+ string(4) "val2"
+ ["len"]=>
+ int(-1)
+ ["precision"]=>
+ int(0)
+ ["pdo_type"]=>
+ int(2)
+}
+array(6) {
+ ["native_type"]=>
+ string(7) "integer"
+ ["flags"]=>
+ array(0) {
+ }
+ ["name"]=>
+ string(8) "COUNT(*)"
+ ["len"]=>
+ int(-1)
+ ["precision"]=>
+ int(0)
+ ["pdo_type"]=>
+ int(2)
+}
+===DONE===