cvs: pear /MDB/tests MDB_api_testcase.php
| From: | Paul Gregory Cooper | Date: | Wed, 30 Oct 2002 15:51:04 +0000 |
| Subject: | cvs: pear /MDB/tests MDB_api_testcase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7244@lists.php.net to get a copy of this message | ||
pgc Wed Oct 30 10:51:04 2002 EDT
Modified files:
/pear/MDB/tests MDB_api_testcase.php
Log:
Doh! refectored every call to methodExists
Index: pear/MDB/tests/MDB_api_testcase.php
diff -u pear/MDB/tests/MDB_api_testcase.php:1.7 pear/MDB/tests/MDB_api_testcase.php:1.8
--- pear/MDB/tests/MDB_api_testcase.php:1.7 Wed Oct 30 10:18:26 2002
+++ pear/MDB/tests/MDB_api_testcase.php Wed Oct 30 10:51:04 2002
@@ -41,7 +41,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB_api_testcase.php,v 1.7 2002/10/30 15:18:26 pgc Exp $
+// $Id: MDB_api_testcase.php,v 1.8 2002/10/30 15:51:04 pgc Exp $
class MDB_Api_TestCase extends PHPUnit_TestCase {
//contains the dsn of the database we are testing
@@ -125,7 +125,7 @@
}
function testSetOption() {
- if (!$this->methodExists($this->db, 'setOption')) {
+ if (!$this->methodExists('setOption')) {
return;
}
$option = $this->db->getOption('persistent');
@@ -135,7 +135,7 @@
}
function testGetTextValue() {
- if (!$this->methodExists($this->db, 'getTextValue')) {
+ if (!$this->methodExists('getTextValue')) {
return;
}
$text = "Mr O'Leary";
@@ -148,7 +148,7 @@
}
function testLoadManager() {
- if (!$this->methodExists($this->db, 'loadManager')) {
+ if (!$this->methodExists('loadManager')) {
return;
}
$this->assertTrue(!MDB::isError($this->db->loadManager("Create
database")));
@@ -166,7 +166,7 @@
}
function testQuery() {
- if (!$this->methodExists($this->db, 'query')) {
+ if (!$this->methodExists('query')) {
return;
}
$result = $this->standardQuery();
@@ -174,7 +174,7 @@
}
function testFetch() {
- if (!$this->methodExists($this->db, 'fetch')) {
+ if (!$this->methodExists('fetch')) {
return;
}
$result = $this->standardQuery();
@@ -182,7 +182,7 @@
}
function testNumCols() {
- if (!$this->methodExists($this->db, 'numCols')) {
+ if (!$this->methodExists('numCols')) {
return;
}
$result = $this->standardQuery();