scratch – Blame information for rev 120
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
120 | office | 1 | <?php |
2 | |||
3 | namespace Tests\FFMpeg\Unit\Filters\Audio; |
||
4 | |||
5 | use FFMpeg\Filters\Audio\AudioResamplableFilter; |
||
6 | use Tests\FFMpeg\Unit\TestCase; |
||
7 | |||
8 | class AudioResamplableFilterTest extends TestCase |
||
9 | { |
||
10 | public function testGetRate() |
||
11 | { |
||
12 | $filter = new AudioResamplableFilter(500); |
||
13 | $this->assertEquals(500, $filter->getRate()); |
||
14 | } |
||
15 | |||
16 | public function testApply() |
||
17 | { |
||
18 | $audio = $this->getAudioMock(); |
||
19 | $format = $this->getMock('FFMpeg\Format\AudioInterface'); |
||
20 | |||
21 | $filter = new AudioResamplableFilter(500); |
||
22 | $this->assertEquals(array('-ac', 2, '-ar', 500), $filter->apply($audio, $format)); |
||
23 | } |
||
24 | } |