Fixed bugs in the tests
This commit is contained in:
parent
44bcaeec0b
commit
5ef964f2b5
3 changed files with 9 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ class WaveformFilters
|
|||
*/
|
||||
public function setDownmix()
|
||||
{
|
||||
$this->waveform->addFilter(new DownmixFilter());
|
||||
$this->waveform->addFilter(new WaveformDownmixFilter());
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue