Annotation of embedaddon/php/ext/oci8/tests/coll_001.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>