From b05014c2e9a161b1d78bcc746a8e946226e5a461 Mon Sep 17 00:00:00 2001 From: Iltar van der Berg Date: Tue, 21 Jun 2016 09:59:55 +0200 Subject: [PATCH] Avoid phpunit 5.4 warnings on getMock --- src/Symfony/Component/Form/Test/TypeTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Test/TypeTestCase.php b/src/Symfony/Component/Form/Test/TypeTestCase.php index 87797757ff..a1e360de11 100644 --- a/src/Symfony/Component/Form/Test/TypeTestCase.php +++ b/src/Symfony/Component/Form/Test/TypeTestCase.php @@ -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); }