cvs: pear /MDB2/tests MDB2_usage_testcase.php

From: Date: Tue, 22 Feb 2005 09:34:53 +0000
Subject: cvs: pear /MDB2/tests MDB2_usage_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29659@lists.php.net to get a copy of this message
lsmith Tue Feb 22 04:34:53 2005 EDT Modified files: /pear/MDB2/tests MDB2_usage_testcase.php Log: - lets not use seek() since seek expect a value to be set http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_usage_testcase.php?r1=1.26&r2=1.27&ty=u Index: pear/MDB2/tests/MDB2_usage_testcase.php diff -u pear/MDB2/tests/MDB2_usage_testcase.php:1.26 pear/MDB2/tests/MDB2_usage_testcase.php:1.27 --- pear/MDB2/tests/MDB2_usage_testcase.php:1.26 Sun Feb 20 12:42:28 2005 +++ pear/MDB2/tests/MDB2_usage_testcase.php Tue Feb 22 04:34:51 2005 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_usage_testcase.php,v 1.26 2005/02/20 17:42:28 lsmith Exp $ +// $Id: MDB2_usage_testcase.php,v 1.27 2005/02/22 09:34:51 lsmith Exp $ class MDB2_Usage_TestCase extends PHPUnit_TestCase { //contains the dsn of the database we are testing @@ -130,8 +130,7 @@ } function verifyFetchedValues(&$result, $rownum, &$data) { - $result->seek($rownum); - $row = $result->fetchRow(); + $row = $result->fetchRow(MDB2_FETCHMODE_DEFAULT, $rownum); for ($i = 0; $i < count($this->fields); $i++) { $value = $row[$i]; $field = $this->fields[$i];

« previous php.pear.cvs (#29659) next »