From 26880983fc289c9351037e963548f2c5c39f04d8 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 16 Aug 2017 19:24:39 +0200 Subject: [PATCH] Removing `::class` meta-constant for tests that need to run against my grandparents' PHP --- .../Tests/ORM/Hydration/AbstractHydratorTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Hydration/AbstractHydratorTest.php b/tests/Doctrine/Tests/ORM/Hydration/AbstractHydratorTest.php index 1d02b6c2b..781257e15 100644 --- a/tests/Doctrine/Tests/ORM/Hydration/AbstractHydratorTest.php +++ b/tests/Doctrine/Tests/ORM/Hydration/AbstractHydratorTest.php @@ -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);