1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Merge pull request #6142 from mbeccati/php72-count-fix

Fix incompatibility w/ PHP7.2+
This commit is contained in:
Marco Pivetta 2016-11-26 04:56:39 +01:00 committed by GitHub
commit 899393d3bb

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));