]> granicus.if.org Git - php/commitdiff
Add more tests.
authorMagnus M��tt� <magnus@php.net>
Wed, 9 Mar 2005 03:50:10 +0000 (03:50 +0000)
committerMagnus M��tt� <magnus@php.net>
Wed, 9 Mar 2005 03:50:10 +0000 (03:50 +0000)
ext/pdo_mysql/tests/pdo_020.phpt [new file with mode: 0755]
ext/pdo_oci/tests/pdo_021.phpt [new file with mode: 0755]

diff --git a/ext/pdo_mysql/tests/pdo_020.phpt b/ext/pdo_mysql/tests/pdo_020.phpt
new file mode 100755 (executable)
index 0000000..7c33a99
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+PDO_MySQL: 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_oci/tests/pdo_021.phpt b/ext/pdo_oci/tests/pdo_021.phpt
new file mode 100755 (executable)
index 0000000..ea5cc41
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+PDO_OCI: 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===