Commit 4075f1c8 authored by Marco Pivetta's avatar Marco Pivetta

Removing deprecation errors caused by `getMock` usage in PHPUnit 5.4.x

parent b229fa22
......@@ -283,7 +283,10 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this->_sm->dropAndCreateTable($table);
$listenerMock = $this->getMock('ListTableColumnsDispatchEventListener', array('onSchemaColumnDefinition'));
$listenerMock = $this
->getMockBuilder('ListTableColumnsDispatchEventListener')
->setMethods(['onSchemaColumnDefinition'])
->getMock();
$listenerMock
->expects($this->exactly(7))
->method('onSchemaColumnDefinition');
......@@ -308,7 +311,10 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this->_sm->dropAndCreateTable($table);
$listenerMock = $this->getMock('ListTableIndexesDispatchEventListener', array('onSchemaIndexDefinition'));
$listenerMock = $this
->getMockBuilder('ListTableIndexesDispatchEventListener')
->setMethods(['onSchemaIndexDefinition'])
->getMock();
$listenerMock
->expects($this->exactly(3))
->method('onSchemaIndexDefinition');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment