cvs: pear /MDB2/tests MDB2_testcase.php
| From: | Lukas Smith | Date: | Sat, 20 May 2006 10:33:16 +0000 |
| Subject: | cvs: pear /MDB2/tests MDB2_testcase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40223@lists.php.net to get a copy of this message | ||
lsmith Sat May 20 10:33:16 2006 UTC
Modified files:
/pear/MDB2/tests MDB2_testcase.php
Log:
- cosmetic improvements
http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_testcase.php?r1=1.12&r2=1.13&diff_format=u
Index: pear/MDB2/tests/MDB2_testcase.php
diff -u pear/MDB2/tests/MDB2_testcase.php:1.12 pear/MDB2/tests/MDB2_testcase.php:1.13
--- pear/MDB2/tests/MDB2_testcase.php:1.12 Fri May 19 06:09:52 2006
+++ pear/MDB2/tests/MDB2_testcase.php Sat May 20 10:33:15 2006
@@ -41,7 +41,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2_testcase.php,v 1.12 2006/05/19 06:09:52 lsmith Exp $
+// $Id: MDB2_testcase.php,v 1.13 2006/05/20 10:33:15 lsmith Exp $
class MDB2_TestCase extends PHPUnit_TestCase {
//contains the dsn of the database we are testing
@@ -54,8 +54,6 @@
var $db;
// contains field names from the test table
var $fields;
- // contains the types of the fields from the test table
- var $types;
// if the tables should be cleared in the setUp() and tearDown() methods
var $clear_tables = true;
@@ -114,7 +112,7 @@
return true;
}
- function verifyFetchedValues(&$result, $rownum, &$data) {
+ function verifyFetchedValues(&$result, $rownum, $data) {
$row = $result->fetchRow(MDB2_FETCHMODE_DEFAULT, $rownum);
reset($row);
foreach ($this->fields as $field => $type) {
@@ -130,7 +128,7 @@
}
}
- function getSampleData($row) {
+ function getSampleData($row = 1) {
$data = array();
$data['user_name'] = 'user_' . $row;
$data['user_password'] = 'somepassword';