Removing ::class
meta-constant for tests that need to run against my grandparents' PHP
This commit is contained in:
parent
d9899732ca
commit
26880983fc
@ -25,11 +25,11 @@ class AbstractHydratorTest extends OrmFunctionalTestCase
|
|||||||
*/
|
*/
|
||||||
public function testOnClearEventListenerIsDetachedOnCleanup()
|
public function testOnClearEventListenerIsDetachedOnCleanup()
|
||||||
{
|
{
|
||||||
$mockConnection = $this->createMock(Connection::class);
|
$mockConnection = $this->createMock('Doctrine\DBAL\Connection');
|
||||||
$mockEntityManagerInterface = $this->createMock(EntityManagerInterface::class);
|
$mockEntityManagerInterface = $this->createMock('Doctrine\ORM\EntityManagerInterface');
|
||||||
$mockEventManager = $this->createMock(EventManager::class);
|
$mockEventManager = $this->createMock('Doctrine\Common\EventManager');
|
||||||
$mockStatement = $this->createMock(Statement::class);
|
$mockStatement = $this->createMock('Doctrine\DBAL\Driver\Statement');
|
||||||
$mockResultMapping = $this->getMockBuilder(ResultSetMapping::class);
|
$mockResultMapping = $this->getMockBuilder('Doctrine\ORM\Query\ResultSetMapping');
|
||||||
|
|
||||||
$mockEntityManagerInterface->expects(self::any())->method('getEventManager')->willReturn($mockEventManager);
|
$mockEntityManagerInterface->expects(self::any())->method('getEventManager')->willReturn($mockEventManager);
|
||||||
$mockEntityManagerInterface->expects(self::any())->method('getConnection')->willReturn($mockConnection);
|
$mockEntityManagerInterface->expects(self::any())->method('getConnection')->willReturn($mockConnection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user