diff options
author | Matteo Beccati <mbeccati@php.net> | 2014-10-31 18:54:16 +0100 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2014-10-31 18:54:16 +0100 |
commit | 29ee69434122bcda8c904ff6fbde2b9c74332240 (patch) | |
tree | 9f03121d4a666ac43a4461e9a72d853967cc40b4 | |
parent | 9580fcfeddf85f6510217fec2f596f6f5169f251 (diff) | |
download | php-git-29ee69434122bcda8c904ff6fbde2b9c74332240.tar.gz |
Added PGSQL_TEST_CONNSTR env var support for ext/pgsql tests
-rw-r--r-- | ext/pgsql/tests/config.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/pgsql/tests/config.inc b/ext/pgsql/tests/config.inc index d4bbb33824..224d055087 100644 --- a/ext/pgsql/tests/config.inc +++ b/ext/pgsql/tests/config.inc @@ -1,12 +1,15 @@ <?php + // These vars are used to connect db and create test table. -// values can be set to meet your environment +// values can be set to meet your environment with the +// environment var PGSQL_TEST_CONNSTR + +$conn_str = getenv('PGSQL_TEST_CONNSTR') ?: "host=localhost dbname=test port=5432"; // connection string -$conn_str = "host=localhost dbname=test port=5432"; // connection string $table_name = "php_pgsql_test"; // test table that should be exist $num_test_record = 1000; // Number of records to create $table_def = "CREATE TABLE php_pgsql_test (num int, str text, bin bytea);"; // Test table $field_name = "num"; // For pg_field_num() -?>
\ No newline at end of file +?> |