Merge pull request #6491 from SamKnows/fix/mock-implementations
Fix Mock Implementations.
This commit is contained in:
commit
049ad1e079
@ -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 int|null $fetchMode
|
||||
* @param int|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,7 +107,7 @@ class HydratorMockStatement implements \IteratorAggregate, Statement
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function execute($params = [])
|
||||
public function execute($params = null)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
public function fetch($fetchStyle = null)
|
||||
public function fetch($fetchMode = null, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0)
|
||||
{
|
||||
$current = current($this->_result);
|
||||
next($this->_result);
|
||||
|
@ -75,14 +75,14 @@ class StatementMock implements \IteratorAggregate, Statement
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function fetch($fetchStyle = null)
|
||||
public function fetch($fetchMode = null, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function fetchAll($fetchStyle = null)
|
||||
public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user