Annotation of embedaddon/php/ext/pdo_firebird/tests/common.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: FIREBIRD
! 3: --SKIPIF--
! 4: <?php # vim:ft=php
! 5: if (!extension_loaded('pdo_firebird')) 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_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: }
! 27: return $config;
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>