config.inc 453 B

1234567891011121314
  1. <?php # vim:se ft=php:
  2. if (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. foreach ($config['ENV'] as $k => $v) {
  12. putenv("$k=$v");
  13. }