diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:21:01 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:21:01 +0200 |
commit | 2dd8827768379ef8a96611b7b702464da8fd7349 (patch) | |
tree | d633e1a9dbb34e34eae5088c9db0765d85cb1b80 /utility | |
parent | 874c469e0241962e15927de5aba758a7206849ba (diff) |
replace fetchRow with fetch to honour pdostatement
Diffstat (limited to 'utility')
-rw-r--r-- | utility/mappertestutility.php | 4 |
1 files changed, 2 insertions, 2 deletions
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]; |