diff options
author | Jamie Matthews <[email protected]> | 2010-10-22 13:42:08 +0100 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-10-22 13:42:08 +0100 |
commit | 9e813ef6b5f2fdc12b922e8cd0f7ff7acb46dabf (patch) | |
tree | 11d26af728c88ba9c4e7487a5b5d344c52df5993 | |
parent | 234a748983213403120447a81ab3bdda62908c2f (diff) |
Fix errors in test suite
-rw-r--r-- | test/test_classes.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_classes.php b/test/test_classes.php index 2749f9d..a948d01 100644 --- a/test/test_classes.php +++ b/test/test_classes.php @@ -7,10 +7,11 @@ */ class DummyPDOStatement extends PDOStatement { + private $current_row = 0; /** * Return some dummy data */ - public function fetch($fetch_style) { + public function fetch($fetch_style=PDO::FETCH_BOTH, $cursor_orientation=PDO::FETCH_ORI_NEXT, $cursor_offset=0) { if ($this->current_row == 5) { return false; } else { @@ -31,7 +32,7 @@ /** * Return a dummy PDO statement */ - public function prepare($statement) { + public function prepare($statement, $driver_options=array()) { $this->last_query = new DummyPDOStatement($statement); return $this->last_query; } |