fix PHPUnit 4.8 compatibility
This commit is contained in:
parent
615cc10b70
commit
64fa13bf44
@ -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