Avoid phpunit 5.4 warnings on getMock

This commit is contained in:
Iltar van der Berg 2016-06-21 09:59:55 +02:00
parent 0854c121c9
commit b05014c2e9
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ abstract class TypeTestCase extends FormIntegrationTestCase
{
parent::setUp();
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
$this->dispatcher = $this->getMockBuilder('Symfony\Component\EventDispatcher\EventDispatcherInterface')->getMock();
$this->builder = new FormBuilder(null, null, $this->dispatcher, $this->factory);
}