Skip to content

Commit

Permalink
updates to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Aug 2, 2018
1 parent 2555dd2 commit fa7e128
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
39 changes: 0 additions & 39 deletions src/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,45 +159,6 @@ public function fromTimestamp($timestamp) {
return $time;
}

/**
* @param int $start
* @return string
*/
public function limit($start = 0) {
echo '<b>Warning: limit() is no longer used, use limitQuery()</b>';
if ($start == 0) {
$s = 'limit '.(int) $this->maxMatches;
} else {
$s = 'limit '.(int) $start.','.(int) $this->maxMatches;
}
return $s;
}

/**
* perform a query with limited result set
*
* @param string $queryString
* @param string|int $numRows
* @param int $offset
* @param string|int $line
* @param string $file
* @return mixed
*/
public function limitQuery($queryString, $numRows = '', $offset = 0, $line = '', $file = '') {
if (!$numRows)
$numRows = $this->maxMatches;
if ($offset == 0) {
$queryString .= ' LIMIT '.(int) $numRows;
} else {
$queryString .= ' LIMIT '.(int) $offset.','.(int) $numRows;
}

if ($this->Debug)
printf("Debug: limitQuery = %s<br>offset=%d, num_rows=%d<br>\n", $queryString, $offset, $numRows);

return $this->query($queryString, $line, $file);
}

/**
* db:qr()
*
Expand Down
20 changes: 0 additions & 20 deletions tests/Mysqli/DbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,27 +222,7 @@ public function testDisconnect() {
//}
}

public function testLog() {
$this->markTestIncomplete('This test has not been implemented yet.');
}

public function testLimit() {
$this->markTestIncomplete('This test has not been implemented yet.');
}

public function testHalt() {
$this->markTestIncomplete('This test has not been implemented yet.');
}

public function testHaltmsg() {
$this->markTestIncomplete('This test has not been implemented yet.');
}

public function testFree() {
$this->markTestIncomplete('This test has not been implemented yet.');
}

public function testSeek() {
$this->markTestIncomplete('This testhas not been implemented yet.');
}
}

0 comments on commit fa7e128

Please sign in to comment.