1
0
mirror of synced 2025-02-02 21:41:45 +03:00

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:
Matteo Beccati 2016-11-22 07:33:39 +01:00
parent 95d9c64aec
commit 39dcf3e4c6

View File

@ -135,7 +135,9 @@ class QueryCacheTest extends OrmFunctionalTestCase
->method('execute')
->will($this->returnValue( 10 ));
$parserResultMock = $this->createMock(ParserResult::class);
$parserResultMock = $this->getMockBuilder(ParserResult::class)
->setMethods(array('getSqlExecutor'))
->getMock();
$parserResultMock->expects($this->once())
->method('getSqlExecutor')
->will($this->returnValue($sqlExecMock));