php-src/ext/pdo_oci/tests/pdo_oci_attr_drivername.phpt
Matteo Beccati 7ab5d01e23 MFB
- Updated PDO_OCI to the latest version (from PHP_5_3 branch)
# This commit reverts some changes to the tests. Given the very high
# failure ratio of the current tests on HEAD I'm not going to fix them
# now. Keeping ext/pdo_oci in sync with 5.3 will be much more helpful when
# merging. The effort to fix the tests can start when 5.3 is out.
2009-05-12 21:35:21 +00:00

22 lines
440 B
PHP

--TEST--
PDO_OCI: Attribute: verify driver name
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
require(dirname(__FILE__).'/../../pdo/tests/pdo_test.inc');
PDOTest::skip();
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../pdo/tests/pdo_test.inc';
$dbh = PDOTest::factory();
var_dump($dbh->getAttribute(PDO::ATTR_DRIVER_NAME));
echo "Done\n";
?>
--EXPECT--
string(3) "oci"
Done