1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Removing ::class meta-constant for tests that need to run against my grandparents' PHP

This commit is contained in:
Marco Pivetta 2017-08-16 19:24:39 +02:00
parent d9899732ca
commit 26880983fc
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -25,11 +25,11 @@ class AbstractHydratorTest extends OrmFunctionalTestCase
*/
public function testOnClearEventListenerIsDetachedOnCleanup()
{
$mockConnection = $this->createMock(Connection::class);
$mockEntityManagerInterface = $this->createMock(EntityManagerInterface::class);
$mockEventManager = $this->createMock(EventManager::class);
$mockStatement = $this->createMock(Statement::class);
$mockResultMapping = $this->getMockBuilder(ResultSetMapping::class);
$mockConnection = $this->createMock('Doctrine\DBAL\Connection');
$mockEntityManagerInterface = $this->createMock('Doctrine\ORM\EntityManagerInterface');
$mockEventManager = $this->createMock('Doctrine\Common\EventManager');
$mockStatement = $this->createMock('Doctrine\DBAL\Driver\Statement');
$mockResultMapping = $this->getMockBuilder('Doctrine\ORM\Query\ResultSetMapping');
$mockEntityManagerInterface->expects(self::any())->method('getEventManager')->willReturn($mockEventManager);
$mockEntityManagerInterface->expects(self::any())->method('getConnection')->willReturn($mockConnection);