diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pdo/tests/pdo_test.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pdo/tests/pdo_test.inc b/ext/pdo/tests/pdo_test.inc index 79b2a9d168..2498d43f58 100644 --- a/ext/pdo/tests/pdo_test.inc +++ b/ext/pdo/tests/pdo_test.inc @@ -52,6 +52,16 @@ class PDOTest { } return false; } + + static function test_factory($file) { + $data = file_get_contents($file); + $data = preg_replace('/^.*--REDIRECTTEST--/s', '', $data); + $config = eval($data); + foreach ($config['ENV'] as $k => $v) { + putenv("$k=$v"); + } + return self::factory(); + } } |