From 14378908723ca045b9c04ebefdb0a1ade9687e69 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Wed, 9 Nov 2011 06:19:07 +0000 Subject: Add tests for unsupported types --- ext/oci8/package.xml | 5 ++++- ext/oci8/tests/array_bind_bdouble.phpt | 21 +++++++++++++++++++++ ext/oci8/tests/array_bind_bfloat.phpt | 21 +++++++++++++++++++++ ext/oci8/tests/array_bind_uin.phpt | 21 +++++++++++++++++++++ 4 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 ext/oci8/tests/array_bind_bdouble.phpt create mode 100644 ext/oci8/tests/array_bind_bfloat.phpt create mode 100644 ext/oci8/tests/array_bind_uin.phpt (limited to 'ext/oci8') diff --git a/ext/oci8/package.xml b/ext/oci8/package.xml index 526336f85f..f086869dea 100644 --- a/ext/oci8/package.xml +++ b/ext/oci8/package.xml @@ -33,7 +33,7 @@ http://pear.php.net/dtd/package-2.0.xsd"> no - 2011-11-03 + 2011-11-08 @@ -66,6 +66,8 @@ http://pear.php.net/dtd/package-2.0.xsd"> + + @@ -74,6 +76,7 @@ http://pear.php.net/dtd/package-2.0.xsd"> + diff --git a/ext/oci8/tests/array_bind_bdouble.phpt b/ext/oci8/tests/array_bind_bdouble.phpt new file mode 100644 index 0000000000..1bb95b2365 --- /dev/null +++ b/ext/oci8/tests/array_bind_bdouble.phpt @@ -0,0 +1,21 @@ +--TEST-- +Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE +--SKIPIF-- + true, 'timesten' => false); // test runs on these DBs +require(dirname(__FILE__).'/skipif.inc'); +?> +--FILE-- + +--EXPECTF-- +Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 22 in %sarray_bind_bdouble.php on line %d +Done diff --git a/ext/oci8/tests/array_bind_bfloat.phpt b/ext/oci8/tests/array_bind_bfloat.phpt new file mode 100644 index 0000000000..0b8fad6e60 --- /dev/null +++ b/ext/oci8/tests/array_bind_bfloat.phpt @@ -0,0 +1,21 @@ +--TEST-- +Unsupported type: oci_bind_array_by_name() and SQLT_BFLOAT +--SKIPIF-- + true, 'timesten' => false); // test runs on these DBs +require(dirname(__FILE__).'/skipif.inc'); +?> +--FILE-- + +--EXPECTF-- +Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 21 in %sarray_bind_bfloat.php on line %d +Done diff --git a/ext/oci8/tests/array_bind_uin.phpt b/ext/oci8/tests/array_bind_uin.phpt new file mode 100644 index 0000000000..3ce039e0d0 --- /dev/null +++ b/ext/oci8/tests/array_bind_uin.phpt @@ -0,0 +1,21 @@ +--TEST-- +Unsupported type: oci_bind_array_by_name() and SQLT_UIN +--SKIPIF-- + true, 'timesten' => false); // test runs on these DBs +require(dirname(__FILE__).'/skipif.inc'); +?> +--FILE-- + +--EXPECTF-- +Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 68 in %sarray_bind_uin.php on line %d +Done -- cgit v1.2.1