minor #30988 [Form] fix PHPUnit 4.8 compatibility (xabbuh)

This PR was merged into the 3.4 branch.

Discussion
----------

[Form] fix PHPUnit 4.8 compatibility

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

64fa13bf44 fix PHPUnit 4.8 compatibility
This commit is contained in:
Christian Flothmann 2019-04-07 19:42:35 +02:00
commit 152e0992f5
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class FileTypeTest extends BaseTypeTest
protected function getExtensions()
{
$translator = $this->createMock(TranslatorInterface::class);
$translator = $this->getMockBuilder(TranslatorInterface::class)->getMock();
$translator->expects($this->any())->method('trans')->willReturnArgument(0);
return array_merge(parent::getExtensions(), [new CoreExtension(null, null, $translator)]);