scratch – Blame information for rev 122
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
120 | office | 1 | <?php |
2 | |||
3 | namespace Tests\FFMpeg\Unit\Coordinate; |
||
4 | |||
5 | use Tests\FFMpeg\Unit\TestCase; |
||
6 | use FFMpeg\Coordinate\FrameRate; |
||
7 | |||
8 | class FrameRateTest extends TestCase |
||
9 | { |
||
10 | public function testGetter() |
||
11 | { |
||
12 | $fr = new FrameRate(23.997); |
||
13 | $this->assertEquals(23.997, $fr->getValue()); |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * @dataProvider provideInvalidFrameRates |
||
18 | * @expectedException FFMpeg\Exception\InvalidArgumentException |
||
19 | */ |
||
20 | public function testInvalidFrameRate($value) |
||
21 | { |
||
22 | new FrameRate($value); |
||
23 | } |
||
24 | |||
25 | public function provideInvalidFrameRates() |
||
26 | { |
||
27 | return array( |
||
28 | array(0), array(-1.5), array(-2), |
||
29 | ); |
||
30 | } |
||
31 | } |