xref: /PHP-7.4/ext/oci8/tests/coll_008.phpt (revision 26dfce7f)
1--TEST--
2ocicollassign()
3--SKIPIF--
4<?php
5$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6require(__DIR__.'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require __DIR__."/connect.inc";
12require __DIR__."/create_type.inc";
13
14$coll1 = ocinewcollection($c, $type_name);
15$coll2 = ocinewcollection($c, $type_name);
16
17var_dump($coll1->append(1));
18
19var_dump($coll2->assign($coll1));
20
21var_dump($coll2->getElem(0));
22
23echo "Done\n";
24
25require __DIR__."/drop_type.inc";
26
27?>
28--EXPECT--
29bool(true)
30bool(true)
31float(1)
32Done
33