1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Removed PHPUnit 5.6+ API usage

This commit is contained in:
Marco Pivetta 2017-08-18 21:24:47 +02:00
parent fd6d4890c4
commit aa80f6c0b5
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

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