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

35 lines
669 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()
{
2012-05-25 18:24:37 +02:00
$this->object = new X264();
$this->object->setDimensions(320, 320);
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');
}
}