xref: /PHP-7.2/ext/oci8/tests/coll_005.phpt (revision a2c0f872)
1--TEST--
2ocinewcollection()
3--SKIPIF--
4<?php
5$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6require(dirname(__FILE__).'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require dirname(__FILE__)."/connect.inc";
12require dirname(__FILE__)."/create_type.inc";
13
14var_dump(ocinewcollection($c, $type_name));
15var_dump(ocinewcollection($c, "NONEXISTENT"));
16
17echo "Done\n";
18
19require dirname(__FILE__)."/drop_type.inc";
20
21?>
22--EXPECTF--
23object(OCI-Collection)#%d (1) {
24  ["collection"]=>
25  resource(%d) of type (oci8 collection)
26}
27
28Warning: ocinewcollection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d
29bool(false)
30Done
31