Fix mocking of objects for newer phpunit version
This commit is contained in:
parent
89b0c2b4d0
commit
537f61095f
29 changed files with 87 additions and 84 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue