1
0
mirror of synced 2025-02-03 05:49:25 +03:00

Update HydratorMockStatement to implement the right interface.

This commit is contained in:
Mathew Davies 2017-06-08 16:25:03 +01:00
parent 971c400025
commit 1559db7ac1
No known key found for this signature in database
GPG Key ID: BD0A22BD35FBBD6C

View File

@ -30,13 +30,12 @@ class HydratorMockStatement implements \IteratorAggregate, Statement
/**
* Fetches all rows from the result set.
*
* @param int|null $fetchStyle
* @param int|null $columnIndex
* @param null $fetchMode
* @param null $fetchArgument
* @param array|null $ctorArgs
*
* @return array
*/
public function fetchAll($fetchStyle = null, $columnIndex = null, array $ctorArgs = null)
public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
{
return $this->_resultSet;
}
@ -55,7 +54,7 @@ class HydratorMockStatement implements \IteratorAggregate, Statement
/**
* {@inheritdoc}
*/
public function fetch($fetchStyle = null)
public function fetch($fetchStyle = null, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0)
{
$current = current($this->_resultSet);
next($this->_resultSet);
@ -108,8 +107,9 @@ class HydratorMockStatement implements \IteratorAggregate, Statement
/**
* {@inheritdoc}
*/
public function execute($params = [])
public function execute($params = null)
{
}
/**