Update HydratorMockStatement to implement the right interface.
This commit is contained in:
parent
971c400025
commit
1559db7ac1
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user