From 9b36078bebc10e23ddc59d60ae39e98c989e7132 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 29 Jan 2015 19:16:16 +0100 Subject: update mappertestutility --- tests/unit/db/mappertestutility.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3