summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-01-29 19:16:16 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-29 20:20:08 +0100
commit9b36078bebc10e23ddc59d60ae39e98c989e7132 (patch)
tree2213527a4343a062bb410fc44d4892a21d36d426
parentff65888e13e491d13edc212c4045565703d9d2b2 (diff)
update mappertestutility
-rw-r--r--tests/unit/db/mappertestutility.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/db/mappertestutility.php b/tests/unit/db/mappertestutility.php
index a612f2f14..cc84e34ed 100644
--- a/tests/unit/db/mappertestutility.php
+++ b/tests/unit/db/mappertestutility.php
@@ -51,7 +51,7 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase {
->getMock();
$this->query = $this->getMock('Query', array('execute', 'bindValue'));
- $this->pdoResult = $this->getMock('Result', array('fetch'));
+ $this->pdoResult = $this->getMock('Result', array('fetch', 'closeCursor'));
$this->queryAt = 0;
$this->prepareAt = 0;
$this->iterators = array();
@@ -90,6 +90,8 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase {
return $result;
}
));
+ $this->pdoResult->expects($this->any())
+ ->method('closeCursor');
$index = 1;
foreach($arguments as $argument) {