summaryrefslogtreecommitdiff
path: root/test/bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/bootstrap.php')
-rw-r--r--test/bootstrap.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bootstrap.php b/test/bootstrap.php
index ec13cc7..4e8795d 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -13,6 +13,14 @@ class MockPDOStatement extends PDOStatement {
/**
* 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) {}
+
public function fetch($fetch_style=PDO::FETCH_BOTH, $cursor_orientation=PDO::FETCH_ORI_NEXT, $cursor_offset=0) {
if ($this->current_row == 5) {
return false;