sixd                                     Wed, 09 Nov 2011 06:19:07 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=318939

Log:
Add tests for unsupported types

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/oci8/package.xml
    A   php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bdouble.phpt
    A   php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bfloat.phpt
    A   php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_uin.phpt
    U   php/php-src/branches/PHP_5_4/ext/oci8/package.xml
    A   php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bdouble.phpt
    A   php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bfloat.phpt
    A   php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_uin.phpt
    U   php/php-src/trunk/ext/oci8/package.xml
    A   php/php-src/trunk/ext/oci8/tests/array_bind_bdouble.phpt
    A   php/php-src/trunk/ext/oci8/tests/array_bind_bfloat.phpt
    A   php/php-src/trunk/ext/oci8/tests/array_bind_uin.phpt

Modified: php/php-src/branches/PHP_5_3/ext/oci8/package.xml
===================================================================
--- php/php-src/branches/PHP_5_3/ext/oci8/package.xml	2011-11-09 05:27:45 UTC (rev 318938)
+++ php/php-src/branches/PHP_5_3/ext/oci8/package.xml	2011-11-09 06:19:07 UTC (rev 318939)
@@ -33,7 +33,7 @@
   <active>no</active>
  </lead>

- <date>2011-11-03</date>
+ <date>2011-11-08</date>
  <time>12:00:00</time>

  <version>
@@ -66,6 +66,8 @@
     <file name="array_bind_012.phpt" role="test" />
     <file name="array_bind_013.phpt" role="test" />
     <file name="array_bind_014.phpt" role="test" />
+    <file name="array_bind_bdouble.phpt" role="test" />
+    <file name="array_bind_bfloat.phpt" role="test" />
     <file name="array_bind_date1.phpt" role="test" />
     <file name="array_bind_date.phpt" role="test" />
     <file name="array_bind_float1.phpt" role="test" />
@@ -74,6 +76,7 @@
     <file name="array_bind_int.phpt" role="test" />
     <file name="array_bind_str1.phpt" role="test" />
     <file name="array_bind_str.phpt" role="test" />
+    <file name="array_bind_uin.phpt" role="test" />
     <file name="b47243_1.phpt" role="test" />
     <file name="b47243_2.phpt" role="test" />
     <file name="b47243_3.phpt" role="test" />

Added: php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bdouble.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bdouble.phpt	                        (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bdouble.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BDOUBLE);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 22 in %sarray_bind_bdouble.php on line %d
+Done


Property changes on: php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bdouble.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bfloat.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bfloat.phpt	                        (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bfloat.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_BFLOAT
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BFLOAT);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 21 in %sarray_bind_bfloat.php on line %d
+Done


Property changes on: php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_bfloat.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_uin.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_uin.phpt	                        (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_uin.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_UIN
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_UIN);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 68 in %sarray_bind_uin.php on line %d
+Done


Property changes on: php/php-src/branches/PHP_5_3/ext/oci8/tests/array_bind_uin.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Modified: php/php-src/branches/PHP_5_4/ext/oci8/package.xml
===================================================================
--- php/php-src/branches/PHP_5_4/ext/oci8/package.xml	2011-11-09 05:27:45 UTC (rev 318938)
+++ php/php-src/branches/PHP_5_4/ext/oci8/package.xml	2011-11-09 06:19:07 UTC (rev 318939)
@@ -33,7 +33,7 @@
   <active>no</active>
  </lead>

- <date>2011-11-03</date>
+ <date>2011-11-08</date>
  <time>12:00:00</time>

  <version>
@@ -66,6 +66,8 @@
     <file name="array_bind_012.phpt" role="test" />
     <file name="array_bind_013.phpt" role="test" />
     <file name="array_bind_014.phpt" role="test" />
+    <file name="array_bind_bdouble.phpt" role="test" />
+    <file name="array_bind_bfloat.phpt" role="test" />
     <file name="array_bind_date1.phpt" role="test" />
     <file name="array_bind_date.phpt" role="test" />
     <file name="array_bind_float1.phpt" role="test" />
@@ -74,6 +76,7 @@
     <file name="array_bind_int.phpt" role="test" />
     <file name="array_bind_str1.phpt" role="test" />
     <file name="array_bind_str.phpt" role="test" />
+    <file name="array_bind_uin.phpt" role="test" />
     <file name="b47243_1.phpt" role="test" />
     <file name="b47243_2.phpt" role="test" />
     <file name="b47243_3.phpt" role="test" />

Added: php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bdouble.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bdouble.phpt	                        (rev 0)
+++ php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bdouble.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BDOUBLE);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 22 in %sarray_bind_bdouble.php on line %d
+Done


Property changes on: php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bdouble.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bfloat.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bfloat.phpt	                        (rev 0)
+++ php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bfloat.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_BFLOAT
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BFLOAT);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 21 in %sarray_bind_bfloat.php on line %d
+Done


Property changes on: php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_bfloat.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_uin.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_uin.phpt	                        (rev 0)
+++ php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_uin.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_UIN
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_UIN);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 68 in %sarray_bind_uin.php on line %d
+Done


Property changes on: php/php-src/branches/PHP_5_4/ext/oci8/tests/array_bind_uin.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Modified: php/php-src/trunk/ext/oci8/package.xml
===================================================================
--- php/php-src/trunk/ext/oci8/package.xml	2011-11-09 05:27:45 UTC (rev 318938)
+++ php/php-src/trunk/ext/oci8/package.xml	2011-11-09 06:19:07 UTC (rev 318939)
@@ -33,7 +33,7 @@
   <active>no</active>
  </lead>

- <date>2011-11-03</date>
+ <date>2011-11-08</date>
  <time>12:00:00</time>

  <version>
@@ -66,6 +66,8 @@
     <file name="array_bind_012.phpt" role="test" />
     <file name="array_bind_013.phpt" role="test" />
     <file name="array_bind_014.phpt" role="test" />
+    <file name="array_bind_bdouble.phpt" role="test" />
+    <file name="array_bind_bfloat.phpt" role="test" />
     <file name="array_bind_date1.phpt" role="test" />
     <file name="array_bind_date.phpt" role="test" />
     <file name="array_bind_float1.phpt" role="test" />
@@ -74,6 +76,7 @@
     <file name="array_bind_int.phpt" role="test" />
     <file name="array_bind_str1.phpt" role="test" />
     <file name="array_bind_str.phpt" role="test" />
+    <file name="array_bind_uin.phpt" role="test" />
     <file name="b47243_1.phpt" role="test" />
     <file name="b47243_2.phpt" role="test" />
     <file name="b47243_3.phpt" role="test" />

Added: php/php-src/trunk/ext/oci8/tests/array_bind_bdouble.phpt
===================================================================
--- php/php-src/trunk/ext/oci8/tests/array_bind_bdouble.phpt	                        (rev 0)
+++ php/php-src/trunk/ext/oci8/tests/array_bind_bdouble.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BDOUBLE);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 22 in %sarray_bind_bdouble.php on line %d
+Done


Property changes on: php/php-src/trunk/ext/oci8/tests/array_bind_bdouble.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/trunk/ext/oci8/tests/array_bind_bfloat.phpt
===================================================================
--- php/php-src/trunk/ext/oci8/tests/array_bind_bfloat.phpt	                        (rev 0)
+++ php/php-src/trunk/ext/oci8/tests/array_bind_bfloat.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_BFLOAT
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BFLOAT);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 21 in %sarray_bind_bfloat.php on line %d
+Done


Property changes on: php/php-src/trunk/ext/oci8/tests/array_bind_bfloat.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Added: php/php-src/trunk/ext/oci8/tests/array_bind_uin.phpt
===================================================================
--- php/php-src/trunk/ext/oci8/tests/array_bind_uin.phpt	                        (rev 0)
+++ php/php-src/trunk/ext/oci8/tests/array_bind_uin.phpt	2011-11-09 06:19:07 UTC (rev 318939)
@@ -0,0 +1,21 @@
+--TEST--
+Unsupported type: oci_bind_array_by_name() and SQLT_UIN
+--SKIPIF--
+<?php
+$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
+require(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+
+require dirname(__FILE__).'/connect.inc';
+
+$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
+$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
+oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_UIN);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 68 in %sarray_bind_uin.php on line %d
+Done


Property changes on: php/php-src/trunk/ext/oci8/tests/array_bind_uin.phpt
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native
-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to