Skip to content

Commit

Permalink
Improved test portability so that it doesn't fail with pdo_pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeccati committed Jun 2, 2013
1 parent cbf90b1 commit a98359b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ext/pdo/tests/bug61292.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ class Database_SQL extends PDO
{
function __construct()
{
$dsn = getenv('PDOTEST_DSN');
$user = getenv('PDOTEST_USER');
$pass = getenv('PDOTEST_PASS');

if ($user === false) $user = NULL;
if ($pass === false) $pass = NULL;
$options = array(PDO::ATTR_PERSISTENT => TRUE);
parent::__construct(getenv("PDOTEST_DSN"), getenv("PDOTEST_USER"), getenv("PDOTEST_PASS"), $options);

parent::__construct($dsn, $user, $pass, $options);
}

var $bar = array();
Expand Down

0 comments on commit a98359b

Please sign in to comment.