common.phpt 692 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Postgres
  3. --EXTENSIONS--
  4. pdo_pgsql
  5. --REDIRECTTEST--
  6. # magic auto-configuration
  7. # Also update config.inc if you make changes here...
  8. $config = array(
  9. 'TESTS' => __DIR__ . '/ext/pdo/tests'
  10. );
  11. if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
  12. # user set them from their shell
  13. $config['ENV']['PDOTEST_DSN'] = getenv('PDO_PGSQL_TEST_DSN');
  14. if (false !== getenv('PDO_PGSQL_TEST_ATTR')) {
  15. $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
  16. }
  17. } else {
  18. $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres';
  19. $config['ENV']['PDOTEST_USER'] = 'postgres';
  20. $config['ENV']['PDOTEST_PASS'] = 'postgres';
  21. }
  22. return $config;