cvs: pear /MDB/tests MDB_usage_testcase.php
| From: | Lukas Smith | Date: | Sun, 02 Feb 2003 13:38:45 +0000 |
| Subject: | cvs: pear /MDB/tests MDB_usage_testcase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8675@lists.php.net to get a copy of this message | ||
lsmith Sun Feb 2 08:38:45 2003 EDT
Modified files:
/pear/MDB/tests MDB_usage_testcase.php
Log:
cosmetic fixes
Index: pear/MDB/tests/MDB_usage_testcase.php
diff -u pear/MDB/tests/MDB_usage_testcase.php:1.23 pear/MDB/tests/MDB_usage_testcase.php:1.24
--- pear/MDB/tests/MDB_usage_testcase.php:1.23 Sat Jan 18 16:54:38 2003
+++ pear/MDB/tests/MDB_usage_testcase.php Sun Feb 2 08:38:45 2003
@@ -41,7 +41,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB_usage_testcase.php,v 1.23 2003/01/18 21:54:38 lsmith Exp $
+// $Id: MDB_usage_testcase.php,v 1.24 2003/02/02 13:38:45 lsmith Exp $
class MDB_Usage_TestCase extends PHPUnit_TestCase {
//contains the dsn of the database we are testing
@@ -144,8 +144,9 @@
$delta = 0;
}
$value = $this->db->$func($result, $rownum, $i);
+
$field = $this->fields[$i];
- $this->assertEquals($value, $data[$field], "the value retrieved for field
\"$field\" ($value) doesn't match what was stored ($data[$field]).$func",
$delta);
+ $this->assertEquals($value, $data[$field], "the value retrieved for field
\"$field\" ($value) using $func() doesn't match what was stored
($data[$field]).$func", $delta);
}
}
@@ -472,7 +473,7 @@
if (MDB::isError($result)) {
$this->assertTrue(FALSE, 'Error executing select
query'.$result->getMessage());
}
-
+
for ($row = 0; $row < $rows && ($row + $start_row < $total_rows); $row++)
{
$this->verifyFetchedValues($result, $row, $data[$row + $start_row]);
}
@@ -505,6 +506,8 @@
}
$this->assertTrue($this->db->endOfResult($result), 'the query result did not
seem to have reached the end of result as expected');
+
+ $this->db->freeResult($result);
}
/**
@@ -517,7 +520,7 @@
for ($start_value = 1; $start_value < 4; $start_value++) {
$sequence_name = "test_sequence_$start_value";
-
+
$this->db->dropSequence($sequence_name);
$result = $this->db->createSequence($sequence_name, $start_value);