| 
									
										
										
										
											2020-02-24 21:42:38 +01:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Tests\FFMpeg\Unit\Format\Video; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use FFMpeg\Format\Video\X264; | 
					
						
							|  |  |  | use Tests\FFMpeg\Unit\TestCase; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class InitialParametersTest extends TestCase | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     public function testApplyInitialParameters() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $format = new X264(); | 
					
						
							| 
									
										
										
										
											2022-02-09 14:32:43 +01:00
										 |  |  |         $format->setInitialParameters(['-acodec', 'libopus']); | 
					
						
							|  |  |  |         $this->assertEquals(['-acodec', 'libopus'], $format->getInitialParameters()); | 
					
						
							| 
									
										
										
										
											2020-02-24 21:42:38 +01:00
										 |  |  |     } | 
					
						
							|  |  |  | } |