1
0
mirror of synced 2025-03-06 12:56:10 +03:00

Update StatementArrayMock to implement the right interface.

This commit is contained in:
Mathew Davies 2017-06-08 16:27:28 +01:00
parent a59367423a
commit 633b821e18

View File

@ -34,12 +34,12 @@ class StatementArrayMock extends StatementMock
} }
} }
public function fetchAll($fetchStyle = null) public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
{ {
return $this->_result; return $this->_result;
} }
public function fetch($fetchStyle = null) public function fetch($fetchMode = null, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0)
{ {
$current = current($this->_result); $current = current($this->_result);
next($this->_result); next($this->_result);