Commit 2790ee79 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #495 from deeky666/fix-hhvm-data-access-test

Fix DataAccess test on HHVM
parents 073f5b62 b4d2d957
...@@ -585,7 +585,7 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -585,7 +585,7 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
$sql = "SELECT * FROM fetch_table"; $sql = "SELECT * FROM fetch_table";
$stmt = $this->_conn->query($sql); $stmt = $this->_conn->query($sql);
$stmt->setFetchMode(\PDO::FETCH_CLASS, __NAMESPACE__ . '\\MyFetchClass', array()); $stmt->setFetchMode(\PDO::FETCH_CLASS, __NAMESPACE__ . '\\MyFetchClass');
$results = $stmt->fetchAll(); $results = $stmt->fetchAll();
...@@ -607,7 +607,7 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -607,7 +607,7 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
$sql = "SELECT * FROM fetch_table"; $sql = "SELECT * FROM fetch_table";
$stmt = $this->_conn->query($sql); $stmt = $this->_conn->query($sql);
$stmt->setFetchMode(\PDO::FETCH_CLASS, __NAMESPACE__ . '\\MyFetchClass', array()); $stmt->setFetchMode(\PDO::FETCH_CLASS, __NAMESPACE__ . '\\MyFetchClass');
$results = array(); $results = array();
while ($row = $stmt->fetch()) { while ($row = $stmt->fetch()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment