projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
trigger mirror
[m6w6/pq-gateway]
/
tests
/
setup.inc
diff --git
a/tests/setup.inc
b/tests/setup.inc
index 6f1b70501be8c91f2ba96a9fb5a88ea41338723d..bdee9d3ac2da135ab436f61e7644b14ac4df6296 100644
(file)
--- a/
tests/setup.inc
+++ b/
tests/setup.inc
@@
-1,6
+1,9
@@
<?php
<?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;
const PQ_TEST_SETUP_SQL = <<<SQL
create extension if not exists hstore;
@@
-36,7
+39,7
@@
const PQ_TEST_TEARDOWN_SQL = <<<SQL
drop table if exists reftest cascade;
SQL;
drop table if exists reftest cascade;
SQL;
-
include_once __DIR__ . "/../lib
/autoload.php";
+
require_once __DIR__ . "/../vendor
/autoload.php";
function executeInConcurrentTransaction(\pq\Query\ExecutorInterface $exec, $sql, array $params = null) {
$conn = $exec->getConnection();
function executeInConcurrentTransaction(\pq\Query\ExecutorInterface $exec, $sql, array $params = null) {
$conn = $exec->getConnection();