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:
commit
152e0992f5
@ -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)]);
|
||||
|
Reference in New Issue
Block a user