Fixed bugs in the tests

This commit is contained in:
Romain Biard 2016-11-16 14:46:11 -03:00
commit 5ef964f2b5
3 changed files with 9 additions and 2 deletions

View file

@ -9,7 +9,7 @@ class WaveformFiltersTest extends TestCase
{
public function testResize()
{
$Waveform = $this->createMock(Waveform::class);
$Waveform = $this->getWaveformMock();
$filters = new WaveformFilters($Waveform);
$Waveform->expects($this->once())

View file

@ -47,6 +47,13 @@ class TestCase extends \PHPUnit_Framework_TestCase
->getMock();
}
public function getWaveformMock()
{
return $this->getMockBuilder('FFMpeg\Media\Waveform')
->disableOriginalConstructor()
->getMock();
}
public function getFFMpegDriverMock()
{
return $this->getMockBuilder('FFMpeg\Driver\FFMpegDriver')