cvs: pear /MDB2/tests MDB2_manager_testcase.php
| From: | Lukas Smith | Date: | Fri, 14 Oct 2005 08:45:05 +0000 |
| Subject: | cvs: pear /MDB2/tests MDB2_manager_testcase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35508@lists.php.net to get a copy of this message | ||
lsmith Fri Oct 14 04:45:05 2005 EDT
Modified files:
/pear/MDB2/tests MDB2_manager_testcase.php
Log:
- added expectError(MDB2_ERROR_UNSUPPORTED)
http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_manager_testcase.php?r1=1.21&r2=1.22&ty=u
Index: pear/MDB2/tests/MDB2_manager_testcase.php
diff -u pear/MDB2/tests/MDB2_manager_testcase.php:1.21
pear/MDB2/tests/MDB2_manager_testcase.php:1.22
--- pear/MDB2/tests/MDB2_manager_testcase.php:1.21 Thu Oct 13 10:47:47 2005
+++ pear/MDB2/tests/MDB2_manager_testcase.php Fri Oct 14 04:44:59 2005
@@ -42,7 +42,7 @@
// | Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2_manager_testcase.php,v 1.21 2005/10/13 14:47:47 lsmith Exp $
+// $Id: MDB2_manager_testcase.php,v 1.22 2005/10/14 08:44:59 lsmith Exp $
require_once 'MDB2/Schema.php';
@@ -72,6 +72,7 @@
$this->db =& MDB2::connect($this->dsn, $this->options);
$this->db->setDatabase($this->database);
$this->db->loadModule('Manager');
+ $this->db->expectError(MDB2_ERROR_UNSUPPORTED);
if (PEAR::isError($this->db) || PEAR::isError($this->db->manager) ) {
$this->assertTrue(false, 'Could not connect to manager in setUp');
exit;
@@ -106,6 +107,7 @@
if ($this->tableExists()) {
$this->db->manager->dropTable($this->table);
}
+ $this->db->popExpect();
unset($this->dsn);
if (!PEAR::isError($this->db->manager)) {
$this->db->disconnect();