From 2dd8827768379ef8a96611b7b702464da8fd7349 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 23:21:01 +0200 Subject: replace fetchRow with fetch to honour pdostatement --- utility/mappertestutility.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utility') diff --git a/utility/mappertestutility.php b/utility/mappertestutility.php index eb7c2a471..9b8cda069 100644 --- a/utility/mappertestutility.php +++ b/utility/mappertestutility.php @@ -42,7 +42,7 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase { ->getMock(); $this->query = $this->getMock('Query', array('execute', 'bindValue')); - $this->pdoResult = $this->getMock('Result', array('fetchRow')); + $this->pdoResult = $this->getMock('Result', array('fetch')); $this->queryAt = 0; $this->prepareAt = 0; $this->iterators = array(); @@ -68,7 +68,7 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase { $fetchAt = $this->fetchAt; $this->pdoResult->expects($this->any()) - ->method('fetchRow') + ->method('fetch') ->will($this->returnCallback( function() use ($iterators, $fetchAt){ $iterator = $iterators[$fetchAt]; -- cgit v1.2.3