projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
support env for dsn; useful for running phpunit
[m6w6/pq-gateway]
/
tests
/
setup.inc
diff --git
a/tests/setup.inc
b/tests/setup.inc
index 6f1b70501be8c91f2ba96a9fb5a88ea41338723d..9c7a93237a20cbf62f6b89fd9a716412f6ee63a9 100644
(file)
--- a/
tests/setup.inc
+++ b/
tests/setup.inc
@@
-1,6
+1,9
@@
<?php
-const PQ_TEST_DSN = "";
+ini_set("date.timezone", "UTC");
+ini_set("error_reporting", E_ALL);
+
+define("PQ_TEST_DSN", getenv("PQ_TEST_DSN"));
const PQ_TEST_SETUP_SQL = <<<SQL
create extension if not exists hstore;