Skip to content

Commit 3ada3aa

Browse files
author
Yasuo Ohgaki
committed
Revise pgsql test files
1 parent 7273185 commit 3ada3aa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ext/pgsql/tests/00version.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ $db = pg_connect($conn_str);
1212
var_dump(pg_version($db));
1313
pg_close($db);
1414

15+
// Get environment vars for debugging
16+
var_dump(serialize($_ENV));
17+
1518
echo "OK";
1619
?>
1720
--EXPECTF--
@@ -23,4 +26,5 @@ array(3) {
2326
["server"]=>
2427
string(%d) "%s"
2528
}
29+
string(%d) "%s"
2630
OK

ext/pgsql/tests/config.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// These vars are used to connect db and create test table.
33
// values can be set to meet your environment
44

5+
// "test" database must be existed. i.e. "createdb test" before testing
6+
// PostgreSQL uses login name as username, user must have access to "test" database.
57
$conn_str = "host=localhost dbname=test port=5432"; // connection string
6-
$table_name = "php_pgsql_test"; // test table that should be exist
8+
$table_name = "php_pgsql_test"; // test table that will be created
79
$num_test_record = 1000; // Number of records to create
810

911
$table_def = "CREATE TABLE php_pgsql_test (num int, str text, bin bytea);"; // Test table

0 commit comments

Comments
 (0)