xref: /PHP-5.3/ext/pdo_pgsql/tests/config.inc (revision 13103335)
1<?php # vim:se ft=php:
2if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
3	# user set them from their shell
4	$config['ENV']['PDOTEST_DSN'] = getenv('PDO_PGSQL_TEST_DSN');
5	if (false !== getenv('PDO_PGSQL_TEST_ATTR')) {
6		$config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
7	}
8} else {
9	$config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password=';
10}
11
12foreach ($config['ENV'] as $k => $v) {
13	putenv("$k=$v");
14}
15