diff options
author | Magnus M��tt� <magnus@php.net> | 2005-03-09 04:45:08 +0000 |
---|---|---|
committer | Magnus M��tt� <magnus@php.net> | 2005-03-09 04:45:08 +0000 |
commit | 4b4975f1f8b36ec4687986403f8ae8cf6623cddb (patch) | |
tree | cf7ca8380e70df3d79510b705011a851c49d51de | |
parent | 27c43d599128c16cd9e8c9075b941527458f8bf3 (diff) | |
download | php-git-4b4975f1f8b36ec4687986403f8ae8cf6623cddb.tar.gz |
Add test 020 and 021 for PDO_SQLite.
-rwxr-xr-x | ext/pdo_sqlite/tests/pdo_020.phpt | 21 | ||||
-rwxr-xr-x | ext/pdo_sqlite/tests/pdo_021.phpt | 20 |
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=== |