summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus M��tt� <magnus@php.net>2005-03-09 04:45:08 +0000
committerMagnus M��tt� <magnus@php.net>2005-03-09 04:45:08 +0000
commit4b4975f1f8b36ec4687986403f8ae8cf6623cddb (patch)
treecf7ca8380e70df3d79510b705011a851c49d51de
parent27c43d599128c16cd9e8c9075b941527458f8bf3 (diff)
downloadphp-git-4b4975f1f8b36ec4687986403f8ae8cf6623cddb.tar.gz
Add test 020 and 021 for PDO_SQLite.
-rwxr-xr-xext/pdo_sqlite/tests/pdo_020.phpt21
-rwxr-xr-xext/pdo_sqlite/tests/pdo_021.phpt20
2 files changed, 41 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_020.phpt b/ext/pdo_sqlite/tests/pdo_020.phpt
new file mode 100755
index 0000000000..2f85040f26
--- /dev/null
+++ b/ext/pdo_sqlite/tests/pdo_020.phpt
@@ -0,0 +1,21 @@
+--TEST--
+PDO_SQLite: PDOStatement::columnCount
+--SKIPIF--
+<?php # vim:ft=php
+require_once('skipif.inc'); ?>
+--FILE--
+<?php
+
+require_once('connection.inc');
+require_once('prepare.inc');
+
+require_once($PDO_TESTS . 'pdo_020.inc');
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECT--
+Counted 2 columns after select1.
+Counted 3 columns after select2.
+Counted 1 columns after select3.
+===DONE===
diff --git a/ext/pdo_sqlite/tests/pdo_021.phpt b/ext/pdo_sqlite/tests/pdo_021.phpt
new file mode 100755
index 0000000000..177bf470a2
--- /dev/null
+++ b/ext/pdo_sqlite/tests/pdo_021.phpt
@@ -0,0 +1,20 @@
+--TEST--
+PDO_SQLite: PDOStatement::execute with parameter markers.
+--SKIPIF--
+<?php # vim:ft=php
+require_once('skipif.inc'); ?>
+--FILE--
+<?php
+
+require_once('connection.inc');
+require_once('prepare.inc');
+
+require_once($PDO_TESTS . 'pdo_021.inc');
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECT--
+There are 6 rows in the table.
+There are 12 rows in the table.
+===DONE===