Annotation of embedaddon/php/ext/pdo_oci/tests/pdo_oci_attr_drivername.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: PDO_OCI: Attribute: verify driver name
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
6: require(dirname(__FILE__).'/../../pdo/tests/pdo_test.inc');
7: PDOTest::skip();
8: ?>
9: --FILE--
10: <?php
11:
12: require dirname(__FILE__) . '/../../pdo/tests/pdo_test.inc';
13:
14: $dbh = PDOTest::factory();
15: var_dump($dbh->getAttribute(PDO::ATTR_DRIVER_NAME));
16:
17: echo "Done\n";
18: ?>
19: --EXPECT--
20: string(3) "oci"
21: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>