Permalink
Browse files

added failing testcase as a reminder

git-svn-id: http://svn.php.net/repository/pear/packages/MDB/trunk@180522 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent ca08ea3 commit d97de72a1c4c87b9913a0ca9e9675c236fdbb783 @quipo quipo committed Feb 23, 2005
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/MDB_usage_testcase.php
@@ -515,6 +515,11 @@ function testRanges() {
$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);
+
+ //setSelectedRowRange() is ignored by the get*() and query*() methods...
+ $this->db->setSelectedRowRange(0, 2);
+ $result = $this->db->queryAll('SELECT user_name, user_password, subscribed, user_id, quota, weight, access_date, access_time, approved FROM users ORDER BY user_id', $this->types);
+ $this->assertEquals(2, count($result));
}
/**

0 comments on commit d97de72

Please sign in to comment.