ComplexMedia has been renamed to the AdvancedMedia.
This commit is contained in:
		
					parent
					
						
							
								4469847d46
							
						
					
				
			
			
				commit
				
					
						0d3bed21a7
					
				
			
		
					 19 changed files with 150 additions and 144 deletions
				
			
		
							
								
								
									
										35
									
								
								tests/Unit/Media/AdvancedMediaTest.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								tests/Unit/Media/AdvancedMediaTest.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| <?php | ||||
| 
 | ||||
| namespace Tests\FFMpeg\Unit\Media; | ||||
| 
 | ||||
| use FFMpeg\Media\AdvancedMedia; | ||||
| 
 | ||||
| class AdvancedMediaTest extends AbstractMediaTestCase | ||||
| { | ||||
|     public function testGetInputs() | ||||
|     { | ||||
|         $driver = $this->getFFMpegDriverMock(); | ||||
|         $ffprobe = $this->getFFProbeMock(); | ||||
| 
 | ||||
|         $advancedMedia = new AdvancedMedia(array(__FILE__, __FILE__), $driver, $ffprobe); | ||||
|         $this->assertSame(array(__FILE__, __FILE__), $advancedMedia->getInputs()); | ||||
|     } | ||||
| 
 | ||||
|     public function testGetInputsCount() | ||||
|     { | ||||
|         $driver = $this->getFFMpegDriverMock(); | ||||
|         $ffprobe = $this->getFFProbeMock(); | ||||
| 
 | ||||
|         $advancedMedia = new AdvancedMedia(array(__FILE__, __FILE__), $driver, $ffprobe); | ||||
|         $this->assertEquals(2, $advancedMedia->getInputsCount()); | ||||
|     } | ||||
| 
 | ||||
|     public function testFiltersReturnFilters() | ||||
|     { | ||||
|         $driver = $this->getFFMpegDriverMock(); | ||||
|         $ffprobe = $this->getFFProbeMock(); | ||||
| 
 | ||||
|         $advancedMedia = new AdvancedMedia(array(__FILE__, __FILE__), $driver, $ffprobe); | ||||
|         $this->assertInstanceOf('FFMpeg\Filters\AdvancedMedia\ComplexFilters', $advancedMedia->filters()); | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue