xref: /PHP-5.6/ext/pdo_firebird/tests/common.phpt (revision 85a261bb)
1--TEST--
2FIREBIRD
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded('pdo_firebird')) print 'skip'; ?>
6--REDIRECTTEST--
7# magic auto-configuration
8
9$config = array(
10	'TESTS' => 'ext/pdo/tests'
11);
12
13
14if (false !== getenv('PDO_FIREBIRD_TEST_DSN')) {
15	# user set them from their shell
16	$config['ENV']['PDOTEST_DSN'] = getenv('PDO_FIREBIRD_TEST_DSN');
17	$config['ENV']['PDOTEST_USER'] = getenv('PDO_FIREBIRD_TEST_USER');
18	$config['ENV']['PDOTEST_PASS'] = getenv('PDO_FIREBIRD_TEST_PASS');
19	if (false !== getenv('PDO_FIREBIRD_TEST_ATTR')) {
20		$config['ENV']['PDOTEST_ATTR'] = getenv('PDO_FIREBIRD_TEST_ATTR');
21	}
22} else {
23	$config['ENV']['PDOTEST_DSN'] = 'firebird:dbname=/opt/firebird/test.gdb';
24	$config['ENV']['PDOTEST_USER'] = 'SYSDBA';
25	$config['ENV']['PDOTEST_PASS'] = 'password';
26}
27return $config;
28