added unit test for custom frame filter
This commit is contained in:
		
					parent
					
						
							
								b3bfb34475
							
						
					
				
			
			
				commit
				
					
						7b98238fa2
					
				
			
		
					 1 changed files with 17 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								tests/Unit/Filters/Frame/CustomFrameFilterTest.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/Unit/Filters/Frame/CustomFrameFilterTest.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | ||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | namespace Tests\FFMpeg\Unit\Filters\Frame; | ||||||
|  | 
 | ||||||
|  | use FFMpeg\Filters\Frame\CustomFrameFilter; | ||||||
|  | use Tests\FFMpeg\Unit\TestCase; | ||||||
|  | 
 | ||||||
|  | class CustomFrameFilterTest extends TestCase | ||||||
|  | { | ||||||
|  |     public function testApplyCustomFrameFilter() | ||||||
|  |     { | ||||||
|  | 	$frame = $this->getFrameMock(); | ||||||
|  | 
 | ||||||
|  | 	$filter = new CustomFrameFilter('whatever i put would end up as a filter'); | ||||||
|  |         $this->assertEquals(array('-vf', 'whatever i put would end up as a filter'), $filter->apply($frame)); | ||||||
|  |     } | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue