summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-27 22:39:35 +0000
committerMarcus Boerger <helly@php.net>2005-02-27 22:39:35 +0000
commitd0a76e992b68b204cd877440b0c706b26d7c1839 (patch)
treef253d3830c6c993eae885ad0797884be977a2485 /ext/pdo_sqlite
parent03a4a8c11d019532ea2781c3d213d6f616e251ff (diff)
downloadphp-git-d0a76e992b68b204cd877440b0c706b26d7c1839.tar.gz
- Add new test
Diffstat (limited to 'ext/pdo_sqlite')
-rwxr-xr-xext/pdo_sqlite/tests/pdo_015.phpt77
1 files changed, 77 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_015.phpt b/ext/pdo_sqlite/tests/pdo_015.phpt
new file mode 100755
index 0000000000..38307a5cf9
--- /dev/null
+++ b/ext/pdo_sqlite/tests/pdo_015.phpt
@@ -0,0 +1,77 @@
+--TEST--
+PDO_SQLite: PDO_FETCH_COLUMN
+--SKIPIF--
+<?php # vim:ft=php
+require_once('skipif.inc');
+?>
+--FILE--
+<?php
+
+require_once('connection.inc');
+require_once('prepare.inc');
+
+require_once(dirname(__FILE__).'/../../pdo/tests/pdo.inc');
+require_once($PDO_TESTS . 'pdo_015.inc');
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+array(2) {
+ [0]=>
+ string(1) "1"
+ [1]=>
+ string(1) "2"
+}
+array(2) {
+ [0]=>
+ string(2) "A2"
+ [1]=>
+ string(2) "B2"
+}
+array(2) {
+ [1]=>
+ array(1) {
+ [0]=>
+ string(1) "A"
+ }
+ [2]=>
+ array(1) {
+ [0]=>
+ string(1) "A"
+ }
+}
+array(2) {
+ [1]=>
+ string(1) "A"
+ [2]=>
+ string(1) "A"
+}
+array(2) {
+ [1]=>
+ string(1) "1"
+ [2]=>
+ string(1) "2"
+}
+array(2) {
+ [1]=>
+ string(1) "A"
+ [2]=>
+ string(1) "A"
+}
+array(2) {
+ [1]=>
+ string(2) "A2"
+ [2]=>
+ string(2) "B2"
+}
+array(1) {
+ ["A"]=>
+ array(2) {
+ [0]=>
+ string(2) "A2"
+ [1]=>
+ string(2) "B2"
+ }
+}
+===DONE===