Annotation of embedaddon/php/ext/pdo_pgsql/tests/common.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Postgres
! 3: --SKIPIF--
! 4: <?php # vim:ft=php
! 5: if (!extension_loaded('pdo_pgsql')) print 'skip'; ?>
! 6: --REDIRECTTEST--
! 7: # magic auto-configuration
! 8: # Also update config.inc if you make changes here...
! 9:
! 10: $config = array(
! 11: 'TESTS' => 'ext/pdo/tests'
! 12: );
! 13:
! 14: if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
! 15: # user set them from their shell
! 16: $config['ENV']['PDOTEST_DSN'] = getenv('PDO_PGSQL_TEST_DSN');
! 17: if (false !== getenv('PDO_PGSQL_TEST_ATTR')) {
! 18: $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
! 19: }
! 20: } else {
! 21: $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password=';
! 22: }
! 23:
! 24: return $config;
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>