diff options
Diffstat (limited to 'tests/unit/db/mappertestutility.php')
-rw-r--r-- | tests/unit/db/mappertestutility.php | 4 |
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) { |