cvs: pear /MDB2/tests MDB2_usage_testcase.php

From: Date: Sun, 20 Feb 2005 17:42:28 +0000
Subject: cvs: pear /MDB2/tests MDB2_usage_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29541@lists.php.net to get a copy of this message
lsmith Sun Feb 20 12:42:28 2005 EDT Modified files: /pear/MDB2/tests MDB2_usage_testcase.php Log: - dont force a specific fetchmode http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_usage_testcase.php?r1=1.25&r2=1.26&ty=u Index: pear/MDB2/tests/MDB2_usage_testcase.php diff -u pear/MDB2/tests/MDB2_usage_testcase.php:1.25 pear/MDB2/tests/MDB2_usage_testcase.php:1.26 --- pear/MDB2/tests/MDB2_usage_testcase.php:1.25 Mon Jan 10 06:44:58 2005 +++ pear/MDB2/tests/MDB2_usage_testcase.php Sun Feb 20 12:42:28 2005 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_usage_testcase.php,v 1.25 2005/01/10 11:44:58 lsmith Exp $ +// $Id: MDB2_usage_testcase.php,v 1.26 2005/02/20 17:42:28 lsmith Exp $ class MDB2_Usage_TestCase extends PHPUnit_TestCase { //contains the dsn of the database we are testing @@ -131,7 +131,7 @@ function verifyFetchedValues(&$result, $rownum, &$data) { $result->seek($rownum); - $row = $result->fetchRow(MDB2_FETCHMODE_ORDERED); + $row = $result->fetchRow(); for ($i = 0; $i < count($this->fields); $i++) { $value = $row[$i]; $field = $this->fields[$i]; @@ -144,7 +144,7 @@ $this->assertEquals($data[$field], $value, "the value retrieved for field \"$field\" ($value) doesn't match what was stored ($data[$field]) into the row $rownum", $delta); } } - + function getSampleData($row) { $data = array(); $data['user_name'] = 'user_' . $row;

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