Add Audio and Video interfaces
This commit is contained in:
parent
aa681f66b1
commit
94775176c9
14 changed files with 294 additions and 222 deletions
39
tests/src/FFMpeg/Format/Video/X264Test.php
Normal file
39
tests/src/FFMpeg/Format/Video/X264Test.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
namespace FFMpeg\Format\Video;
|
||||
|
||||
class X264Test extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var X264
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new X264(320, 320);
|
||||
}
|
||||
|
||||
public function testConstruct()
|
||||
{
|
||||
$this->assertInstanceOf('\\FFMpeg\\Format\\DefaultVideoFormat', $this->object);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\Video\X264::getAvailableAudioCodecs
|
||||
*/
|
||||
public function testGetAvailableAudioCodecs()
|
||||
{
|
||||
$this->object->setAudioCodec('libmp3lame');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\Video\X264::getAvailableVideoCodecs
|
||||
*/
|
||||
public function testGetAvailableVideoCodecs()
|
||||
{
|
||||
$this->object->setVideoCodec('libx264');
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue