cvs: php-src /ext/pdo/tests pdo_test.inc
| From: | Wez Furlong | Date: | Thu, 14 Jul 2005 02:08:18 +0000 |
| Subject: | cvs: php-src /ext/pdo/tests pdo_test.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-32915@lists.php.net to get a copy of this message | ||
wez Wed Jul 13 22:08:18 2005 EDT
Modified files:
/php-src/ext/pdo/tests pdo_test.inc
Log:
Add utility for driver-specific tests
http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_test.inc?r1=1.8&r2=1.9&ty=u
Index: php-src/ext/pdo/tests/pdo_test.inc
diff -u php-src/ext/pdo/tests/pdo_test.inc:1.8 php-src/ext/pdo/tests/pdo_test.inc:1.9
--- php-src/ext/pdo/tests/pdo_test.inc:1.8 Sat Jul 9 00:28:45 2005
+++ php-src/ext/pdo/tests/pdo_test.inc Wed Jul 13 22:08:18 2005
@@ -52,6 +52,16 @@
}
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();
+ }
}