Annotation of embedaddon/php/ext/pdo_oci/tests/common.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: OCI
! 3: --SKIPIF--
! 4: <?php # vim:ft=php
! 5: if (!extension_loaded('pdo_oci')) print 'skip'; ?>
! 6: --REDIRECTTEST--
! 7: # magic auto-configuration
! 8:
! 9: $config = array(
! 10: 'TESTS' => 'ext/pdo/tests'
! 11: );
! 12:
! 13:
! 14: if (false !== getenv('PDO_OCI_TEST_DSN')) {
! 15: # user set them from their shell
! 16: $config['ENV']['PDOTEST_DSN'] = getenv('PDO_OCI_TEST_DSN');
! 17: $config['ENV']['PDOTEST_USER'] = getenv('PDO_OCI_TEST_USER');
! 18: $config['ENV']['PDOTEST_PASS'] = getenv('PDO_OCI_TEST_PASS');
! 19: $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_OCI_TEST_ATTR');
! 20: } else {
! 21: $config['ENV']['PDOTEST_DSN'] = 'oci:dbname=localhost/xe;charset=WE8MSWIN1252';
! 22: $config['ENV']['PDOTEST_USER'] = 'SYSTEM';
! 23: $config['ENV']['PDOTEST_PASS'] = 'oracle';
! 24: }
! 25:
! 26: return $config;
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>