Skip to content

Commit 591fb2d

Browse files
committed
Add one more test.
1 parent de1d8b9 commit 591fb2d

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

ext/pdo_sqlite/tests/pdo_022.phpt

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
--TEST--
2+
PDO_SQLite: PDOStatement::getColumnMeta
3+
--SKIPIF--
4+
<?php # vim:ft=php
5+
require_once('skipif.inc'); ?>
6+
--FILE--
7+
<?php
8+
9+
require_once('connection.inc');
10+
require_once('prepare.inc');
11+
12+
require_once($PDO_TESTS . 'pdo_022.inc');
13+
14+
?>
15+
===DONE===
16+
<?php exit(0); ?>
17+
--EXPECT--
18+
array(7) {
19+
["native_type"]=>
20+
string(7) "integer"
21+
["sqlite:decl_type"]=>
22+
string(3) "INT"
23+
["flags"]=>
24+
array(0) {
25+
}
26+
["name"]=>
27+
string(2) "id"
28+
["len"]=>
29+
int(-1)
30+
["precision"]=>
31+
int(0)
32+
["pdo_type"]=>
33+
int(2)
34+
}
35+
array(7) {
36+
["native_type"]=>
37+
string(6) "string"
38+
["sqlite:decl_type"]=>
39+
string(11) "VARCHAR(10)"
40+
["flags"]=>
41+
array(0) {
42+
}
43+
["name"]=>
44+
string(3) "val"
45+
["len"]=>
46+
int(-1)
47+
["precision"]=>
48+
int(0)
49+
["pdo_type"]=>
50+
int(2)
51+
}
52+
array(7) {
53+
["native_type"]=>
54+
string(6) "string"
55+
["sqlite:decl_type"]=>
56+
string(11) "VARCHAR(16)"
57+
["flags"]=>
58+
array(0) {
59+
}
60+
["name"]=>
61+
string(4) "val2"
62+
["len"]=>
63+
int(-1)
64+
["precision"]=>
65+
int(0)
66+
["pdo_type"]=>
67+
int(2)
68+
}
69+
array(6) {
70+
["native_type"]=>
71+
string(7) "integer"
72+
["flags"]=>
73+
array(0) {
74+
}
75+
["name"]=>
76+
string(8) "COUNT(*)"
77+
["len"]=>
78+
int(-1)
79+
["precision"]=>
80+
int(0)
81+
["pdo_type"]=>
82+
int(2)
83+
}
84+
===DONE===

0 commit comments

Comments
 (0)