cvs: pear /DB/tests/driver 05sequences.phpt 11transactions.phpt 16tableinfo.phpt
| From: | Adam Harvey | Date: | Fri, 29 Dec 2006 07:59:22 +0000 |
| Subject: | cvs: pear /DB/tests/driver 05sequences.phpt 11transactions.phpt 16tableinfo.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-43878@lists.php.net to get a copy of this message | ||
aharvey Fri Dec 29 07:59:22 2006 UTC
Modified files:
/pear/DB/tests/driver 05sequences.phpt 11transactions.phpt
16tableinfo.phpt
Log:
Fixed the SKIPIF sections for DB tests to use $dbh, which is the variable skipif.inc creates, and
not $db.
http://cvs.php.net/viewvc.cgi/pear/DB/tests/driver/05sequences.phpt?r1=1.9&r2=1.10&diff_format=u
Index: pear/DB/tests/driver/05sequences.phpt
diff -u pear/DB/tests/driver/05sequences.phpt:1.9 pear/DB/tests/driver/05sequences.phpt:1.10
--- pear/DB/tests/driver/05sequences.phpt:1.9 Fri Feb 18 22:38:44 2005
+++ pear/DB/tests/driver/05sequences.phpt Fri Dec 29 07:59:22 2006
@@ -7,7 +7,7 @@
error_reporting(E_ALL);
chdir(dirname(__FILE__));
require_once './skipif.inc';
-$tableInfo = $db->dropSequence('ajkdslfajoijkadie');
+$tableInfo = $dbh->dropSequence('ajkdslfajoijkadie');
if (DB::isError($tableInfo) && $tableInfo->code == DB_ERROR_NOT_CAPABLE) {
die("skip $tableInfo->message");
}
http://cvs.php.net/viewvc.cgi/pear/DB/tests/driver/11transactions.phpt?r1=1.6&r2=1.7&diff_format=u
Index: pear/DB/tests/driver/11transactions.phpt
diff -u pear/DB/tests/driver/11transactions.phpt:1.6 pear/DB/tests/driver/11transactions.phpt:1.7
--- pear/DB/tests/driver/11transactions.phpt:1.6 Sat Jan 29 02:42:16 2005
+++ pear/DB/tests/driver/11transactions.phpt Fri Dec 29 07:59:22 2006
@@ -5,7 +5,7 @@
--SKIPIF--
<?php
chdir(dirname(__FILE__)); require_once './skipif.inc';
-if (!$db->features['transactions']) {
+if (!$dbh->features['transactions']) {
die('skip this driver does not support transactions');
}
?>
http://cvs.php.net/viewvc.cgi/pear/DB/tests/driver/16tableinfo.phpt?r1=1.32&r2=1.33&diff_format=u
Index: pear/DB/tests/driver/16tableinfo.phpt
diff -u pear/DB/tests/driver/16tableinfo.phpt:1.32 pear/DB/tests/driver/16tableinfo.phpt:1.33
--- pear/DB/tests/driver/16tableinfo.phpt:1.32 Mon Feb 14 17:04:17 2005
+++ pear/DB/tests/driver/16tableinfo.phpt Fri Dec 29 07:59:22 2006
@@ -48,7 +48,7 @@
*
* @category Database
* @package DB
- * @version $Id: 16tableinfo.phpt,v 1.32 2005/02/14 17:04:17 danielc Exp $
+ * @version $Id: 16tableinfo.phpt,v 1.33 2006/12/29 07:59:22 aharvey Exp $
* @author Daniel Convissor <danielc@analysisandsolutions.com>
* @see DB_common::tableInfo()
*/
@@ -56,7 +56,7 @@
error_reporting(E_ALL);
chdir(dirname(__FILE__));
require_once './skipif.inc';
-$tableInfo = $db->tableInfo('ajkdslfajoijkadie');
+$tableInfo = $dbh->tableInfo('ajkdslfajoijkadie');
if (DB::isError($tableInfo) && $tableInfo->code == DB_ERROR_NOT_CAPABLE) {
die("skip $tableInfo->message");
}
@@ -65,7 +65,7 @@
--FILE--
<?php
-// $Id: 16tableinfo.phpt,v 1.32 2005/02/14 17:04:17 danielc Exp $
+// $Id: 16tableinfo.phpt,v 1.33 2006/12/29 07:59:22 aharvey Exp $
/**
* Connect to the database and make the phptest table.