scratch – Blame information for rev 115
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
115 | office | 1 | <?php |
2 | |||
3 | namespace Tests\FFMpeg\Unit\Filters\Waveform; |
||
4 | |||
5 | use Tests\FFMpeg\Unit\TestCase; |
||
6 | use FFMpeg\Filters\Waveform\WaveformDownmixFilter; |
||
7 | use FFMpeg\Media\Waveform; |
||
8 | use FFMpeg\Coordinate\TimeCode; |
||
9 | use FFMpeg\FFProbe\DataMapping\StreamCollection; |
||
10 | use FFMpeg\FFProbe\DataMapping\Stream; |
||
11 | |||
12 | class WaveformDownmixFilterTest extends TestCase |
||
13 | { |
||
14 | public function testApply() |
||
15 | { |
||
16 | $stream = new Stream(array('codec_type' => 'audio', 'width' => 960, 'height' => 720)); |
||
17 | $streams = new StreamCollection(array($stream)); |
||
18 | |||
19 | $audio = $this->getAudioMock(__FILE__); |
||
20 | $audio->expects($this->once()) |
||
21 | ->method('getStreams') |
||
22 | ->will($this->returnValue($streams)); |
||
23 | |||
24 | $waveform = new Waveform($audio, $this->getFFMpegDriverMock(), $this->getFFProbeMock(), 640, 120); |
||
25 | $filter = new WaveformDownmixFilter(TRUE); |
||
26 | $this->assertEquals(array('"aformat=channel_layouts=mono"'), $filter->apply($waveform)); |
||
27 | } |
||
28 | } |