diff options
author | Wez Furlong <wez@php.net> | 2005-07-14 02:08:18 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-07-14 02:08:18 +0000 |
commit | fbc568013af44ba2acbe272c5cf4209b801a0bd3 (patch) | |
tree | c5f4f64fceee41d64c3c4f3bde85cbf16420b6ae /ext/pdo/tests/pdo_test.inc | |
parent | 0601249f8234ab1dced9b12f816bbbd34c04992f (diff) | |
download | php-git-fbc568013af44ba2acbe272c5cf4209b801a0bd3.tar.gz |
Add utility for driver-specific tests
Diffstat (limited to 'ext/pdo/tests/pdo_test.inc')
-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(); + } } |