]> granicus.if.org Git - php/commitdiff
Add test 020 and 021 for PDO_SQLite.
authorMagnus M��tt� <magnus@php.net>
Wed, 9 Mar 2005 04:45:08 +0000 (04:45 +0000)
committerMagnus M��tt� <magnus@php.net>
Wed, 9 Mar 2005 04:45:08 +0000 (04:45 +0000)
ext/pdo_sqlite/tests/pdo_020.phpt [new file with mode: 0755]
ext/pdo_sqlite/tests/pdo_021.phpt [new file with mode: 0755]

diff --git a/ext/pdo_sqlite/tests/pdo_020.phpt b/ext/pdo_sqlite/tests/pdo_020.phpt
new file mode 100755 (executable)
index 0000000..2f85040
--- /dev/null
@@ -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 (executable)
index 0000000..177bf47
--- /dev/null
@@ -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===