xref: /PHP-7.2/ext/pdo_oci/tests/common.phpt (revision 48c69c37)
1--TEST--
2OCI
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded('pdo_oci')) print 'skip'; ?>
6--REDIRECTTEST--
7# magic auto-configuration
8
9$config = array(
10	'TESTS' => 'ext/pdo/tests'
11);
12
13
14if (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
26return $config;
27