scratch – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
115 | office | 1 | <?php |
2 | |||
3 | namespace Tests\FFMpeg\Functional; |
||
4 | |||
5 | use FFMpeg\FFProbe; |
||
6 | |||
7 | class FFProbeTest extends FunctionalTestCase |
||
8 | { |
||
9 | public function testProbeOnFile() |
||
10 | { |
||
11 | $ffprobe = FFProbe::create(); |
||
12 | $this->assertGreaterThan(0, count($ffprobe->streams(__DIR__ . '/../files/Audio.mp3'))); |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @expectedException FFMpeg\Exception\RuntimeException |
||
17 | */ |
||
18 | public function testProbeOnUnexistantFile() |
||
19 | { |
||
20 | $ffprobe = FFProbe::create(); |
||
21 | $ffprobe->streams('/path/to/no/file'); |
||
22 | } |
||
23 | |||
24 | public function testProbeOnRemoteFile() |
||
25 | { |
||
26 | $ffprobe = FFProbe::create(); |
||
27 | $this->assertGreaterThan(0, count($ffprobe->streams('http://vjs.zencdn.net/v/oceans.mp4'))); |
||
28 | } |
||
29 | } |