]> granicus.if.org Git - php/commitdiff
Fix default credentials when none was passed
authorAnatol Belski <ab@php.net>
Mon, 7 May 2018 10:14:06 +0000 (12:14 +0200)
committerAnatol Belski <ab@php.net>
Mon, 7 May 2018 10:14:38 +0000 (12:14 +0200)
ext/pdo_pgsql/tests/common.phpt
ext/pdo_pgsql/tests/config.inc

index a484e69ea3fe4eb940fd55033af4c7ebfb2a48ea..47281968be0510e7891dfa787b8aa4baa6d8ad36 100644 (file)
@@ -18,7 +18,9 @@ if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
                $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
        }
 } else {
-       $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user= password=';
+       $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres';
+       $config['ENV']['PDOTEST_USER'] = 'postgres';
+       $config['ENV']['PDOTEST_PASS'] = 'postgres';
 }
 
 return $config;
index a86c82094fb3338c2d944eb3119c43d2f8c25467..4fcfa470633dd3299a2ba2c041f63644bb2a9f53 100644 (file)
@@ -7,6 +7,8 @@ if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
        }
 } else {
        $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres';
+       $config['ENV']['PDOTEST_USER'] = 'postgres';
+       $config['ENV']['PDOTEST_PASS'] = 'postgres';
 }
 
 foreach ($config['ENV'] as $k => $v) {