summaryrefslogtreecommitdiff
path: root/test/bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/bootstrap.php')
-rw-r--r--test/bootstrap.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/bootstrap.php b/test/bootstrap.php
index 4e8795d..03ad785 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -8,19 +8,14 @@ require_once dirname(__FILE__) . '/../idiorm.php';
*
*/
class MockPDOStatement extends PDOStatement {
-
private $current_row = 0;
- /**
- * Return some dummy data
- */
- /**
- * These are necessary to run the tests on hhvm. In fact, newing up a PDOStatement (or derivative) should not be
- * technically used since there is no direct constructor for PDOStatement, even though it does work with Zend
- */
public function __construct() {}
public function execute($params) {}
+ /**
+ * Return some dummy data
+ */
public function fetch($fetch_style=PDO::FETCH_BOTH, $cursor_orientation=PDO::FETCH_ORI_NEXT, $cursor_offset=0) {
if ($this->current_row == 5) {
return false;