Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'turrsis-hotfix/db-adapter-setQueryResultSetPrototype' into develop

* turrsis-hotfix/db-adapter-setQueryResultSetPrototype:
  allow use temporary ResultSetPrototype
  • Loading branch information
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/TestAsset/MockDbAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace ZendTest\Log\TestAsset;

use Zend\Db\Adapter\Adapter as DbAdapter;
use Zend\Db\ResultSet\ResultSetInterface;

class MockDbAdapter extends DbAdapter
{
Expand All @@ -29,7 +30,7 @@ public function __construct()
$this->driver = new MockDbDriver;

}
public function query($sql, $parametersOrQueryMode = DbAdapter::QUERY_MODE_PREPARE)
public function query($sql, $parametersOrQueryMode = DbAdapter::QUERY_MODE_PREPARE, ResultSetInterface $resultPrototype = null)
{
$this->calls[__FUNCTION__][] = $sql;
return $this;
Expand Down

0 comments on commit ef19f19

Please sign in to comment.