Fix incompatibility w/ PHP7.2+
Mock_ParserResult_*::getParameterMappings() was returning null, which was then passed to count() on Query.php:308, causing a "Parameter must be an array or an object that implements Countable" error.
This commit is contained in:
parent
95d9c64aec
commit
39dcf3e4c6
@ -135,7 +135,9 @@ class QueryCacheTest extends OrmFunctionalTestCase
|
|||||||
->method('execute')
|
->method('execute')
|
||||||
->will($this->returnValue( 10 ));
|
->will($this->returnValue( 10 ));
|
||||||
|
|
||||||
$parserResultMock = $this->createMock(ParserResult::class);
|
$parserResultMock = $this->getMockBuilder(ParserResult::class)
|
||||||
|
->setMethods(array('getSqlExecutor'))
|
||||||
|
->getMock();
|
||||||
$parserResultMock->expects($this->once())
|
$parserResultMock->expects($this->once())
|
||||||
->method('getSqlExecutor')
|
->method('getSqlExecutor')
|
||||||
->will($this->returnValue($sqlExecMock));
|
->will($this->returnValue($sqlExecMock));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user