Add option to service provider for ffmpeg threads number

This commit is contained in:
Romain Neutron 2012-09-03 15:20:49 +02:00
commit e1c8862248
2 changed files with 15 additions and 2 deletions

View file

@ -68,5 +68,16 @@ class FFMpegServiceProviderTest extends \PHPUnit_Framework_TestCase
$this->assertInstanceOf('\\FFMpeg\\FFProbe', $app['ffmpeg.ffprobe']);
$this->assertInstanceOf('\\FFMpeg\\FFMpeg', $app['ffmpeg.ffmpeg']);
}
/**
* @covers FFMpeg\FFMpegServiceProvider::register
*/
public function testCustomThreadsFFMpeg()
{
$app = $this->getApplication();
$app->register(new FFMpegServiceProvider(), array('ffmpeg.threads'=>18));
$this->assertEquals(18, $app['ffmpeg.ffmpeg']->getThreads());
}
}