Version 0.3
This commit is contained in:
		
					parent
					
						
							
								0d69145ec3
							
						
					
				
			
			
				commit
				
					
						ad3a5af623
					
				
			
		
					 130 changed files with 7283 additions and 2627 deletions
				
			
		
							
								
								
									
										31
									
								
								tests/FFMpeg/Tests/Coordinate/FrameRateTest.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								tests/FFMpeg/Tests/Coordinate/FrameRateTest.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| <?php | ||||
| 
 | ||||
| namespace FFMpeg\Tests\Coordinate; | ||||
| 
 | ||||
| use FFMpeg\Tests\TestCase; | ||||
| use FFMpeg\Coordinate\FrameRate; | ||||
| 
 | ||||
| class FrameRateTest extends TestCase | ||||
| { | ||||
|     public function testGetter() | ||||
|     { | ||||
|         $fr = new FrameRate(23.997); | ||||
|         $this->assertEquals(23.997, $fr->getValue()); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * @dataProvider provideInvalidFrameRates | ||||
|      * @expectedException FFMpeg\Exception\InvalidArgumentException | ||||
|      */ | ||||
|     public function testInvalidFrameRate($value) | ||||
|     { | ||||
|         new FrameRate($value); | ||||
|     } | ||||
| 
 | ||||
|     public function provideInvalidFrameRates() | ||||
|     { | ||||
|         return array( | ||||
|             array(0), array(-1.5), array(-2), | ||||
|         ); | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue