ffmpeg-mappable-media/tests/src/FFMpeg/Format/Video/X264Test.php

39 lines
766 B
PHP
Raw Normal View History

2012-04-13 11:35:55 +02:00
<?php
2012-04-13 12:45:41 +02:00
namespace FFMpeg\Format\Video;
2012-04-13 11:35:55 +02:00
class X264Test extends \PHPUnit_Framework_TestCase
{
/**
* @var X264
*/
protected $object;
protected function setUp()
{
$this->object = new X264(320, 320);
}
public function testConstruct()
{
2012-04-13 12:45:41 +02:00
$this->assertInstanceOf('\\FFMpeg\\Format\\DefaultVideoFormat', $this->object);
2012-04-13 11:35:55 +02:00
}
/**
2012-04-13 12:45:41 +02:00
* @covers FFMpeg\Format\Video\X264::getAvailableAudioCodecs
2012-04-13 11:35:55 +02:00
*/
public function testGetAvailableAudioCodecs()
{
$this->object->setAudioCodec('libmp3lame');
}
/**
2012-04-13 12:45:41 +02:00
* @covers FFMpeg\Format\Video\X264::getAvailableVideoCodecs
2012-04-13 11:35:55 +02:00
*/
public function testGetAvailableVideoCodecs()
{
$this->object->setVideoCodec('libx264');
}
}