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 OggTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var Ogg
|
|
|
|
|
*/
|
|
|
|
|
protected $object;
|
|
|
|
|
|
|
|
|
|
protected function setUp()
|
|
|
|
|
{
|
|
|
|
|
$this->object = new Ogg(320, 320);
|
|
|
|
|
}
|
|
|
|
|
|
2012-04-13 14:26:40 +02:00
|
|
|
/**
|
|
|
|
|
* @covers FFMpeg\Format\Video\Ogg::__construct
|
|
|
|
|
*/
|
2012-04-13 11:35:55 +02:00
|
|
|
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\Ogg::getAvailableAudioCodecs
|
2012-04-13 11:35:55 +02:00
|
|
|
*/
|
|
|
|
|
public function testGetAvailableAudioCodecs()
|
|
|
|
|
{
|
|
|
|
|
$this->object->setAudioCodec('libvorbis');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-04-13 12:45:41 +02:00
|
|
|
* @covers FFMpeg\Format\Video\Ogg::getAvailableVideoCodecs
|
2012-04-13 11:35:55 +02:00
|
|
|
*/
|
|
|
|
|
public function testGetAvailableVideoCodecs()
|
|
|
|
|
{
|
|
|
|
|
$this->object->setVideoCodec('libtheora');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|