1--TEST-- 2OCI 3--EXTENSIONS-- 4pdo_oci 5--REDIRECTTEST-- 6# magic auto-configuration 7 8$config = array( 9 'TESTS' => 'ext/pdo/tests' 10); 11 12 13if (false !== getenv('PDO_OCI_TEST_DSN')) { 14 # user set them from their shell 15 $config['ENV']['PDOTEST_DSN'] = getenv('PDO_OCI_TEST_DSN'); 16 $config['ENV']['PDOTEST_USER'] = getenv('PDO_OCI_TEST_USER'); 17 $config['ENV']['PDOTEST_PASS'] = getenv('PDO_OCI_TEST_PASS'); 18 $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_OCI_TEST_ATTR'); 19} else { 20 $config['ENV']['PDOTEST_DSN'] = 'oci:dbname=localhost/xe;charset=WE8MSWIN1252'; 21 $config['ENV']['PDOTEST_USER'] = 'SYSTEM'; 22 $config['ENV']['PDOTEST_PASS'] = 'oracle'; 23} 24 25return $config; 26