Fix mocking of objects for newer phpunit version

This commit is contained in:
Alexander Schranz 2020-02-13 00:23:11 +01:00
commit 537f61095f
29 changed files with 87 additions and 84 deletions

View file

@ -13,12 +13,12 @@ class TestCase extends BaseTestCase
public function getLoggerMock()
{
return $this->getMock('Psr\Log\LoggerInterface');
return $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
}
public function getCacheMock()
{
return $this->getMock('Doctrine\Common\Cache\Cache');
return $this->getMockBuilder('Doctrine\Common\Cache\Cache')->getMock();
}
public function getTimeCodeMock()
@ -86,17 +86,17 @@ class TestCase extends BaseTestCase
public function getFFProbeParserMock()
{
return $this->getMock('FFMpeg\FFProbe\OutputParserInterface');
return $this->getMockBuilder('FFMpeg\FFProbe\OutputParserInterface')->getMock();
}
public function getFFProbeOptionsTesterMock()
{
return $this->getMock('FFMpeg\FFProbe\OptionsTesterInterface');
return $this->getMockBuilder('FFMpeg\FFProbe\OptionsTesterInterface')->getMock();
}
public function getFFProbeMapperMock()
{
return $this->getMock('FFMpeg\FFProbe\MapperInterface');
return $this->getMockBuilder('FFMpeg\FFProbe\MapperInterface')->getMock();
}
public function getFFProbeOptionsTesterMockWithOptions(array $options)
@ -114,7 +114,7 @@ class TestCase extends BaseTestCase
public function getConfigurationMock()
{
return $this->getMock('Alchemy\BinaryDriver\ConfigurationInterface');
return $this->getMockBuilder('Alchemy\BinaryDriver\ConfigurationInterface')->getMock();
}
public function getFormatMock()