Remove mandatory dimensions
This commit is contained in:
parent
ecccc1c9f5
commit
06c6aabd9d
8 changed files with 36 additions and 60 deletions
|
|
@ -12,22 +12,13 @@ class DefaultVideoFormatTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new DefaultVideoFormatTester(320, 240);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\DefaultVideoFormat::__construct
|
||||
* @covers FFMpeg\Format\DefaultVideoFormat::getWidth
|
||||
* @covers FFMpeg\Format\DefaultVideoFormat::getHeight
|
||||
*/
|
||||
public function testConstruct()
|
||||
{
|
||||
$this->assertEquals(320, $this->object->getWidth());
|
||||
$this->assertEquals(240, $this->object->getHeight());
|
||||
$this->object = new DefaultVideoFormatTester();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\DefaultVideoFormat::setDimensions
|
||||
* @covers FFMpeg\Format\DefaultVideoFormat::getWidth
|
||||
* @covers FFMpeg\Format\DefaultVideoFormat::getHeight
|
||||
*/
|
||||
public function testSetDimensions()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,15 +12,8 @@ class OggTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new Ogg(320, 320);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\Video\Ogg::__construct
|
||||
*/
|
||||
public function testConstruct()
|
||||
{
|
||||
$this->assertInstanceOf('\\FFMpeg\\Format\\DefaultVideoFormat', $this->object);
|
||||
$this->object = new Ogg();
|
||||
$this->object->setDimensions(320, 320);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ class WebMTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new WebM(320, 320);
|
||||
$this->object = new WebM();
|
||||
$this->object->setDimensions(320, 320);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -39,12 +40,4 @@ class WebMTest extends \PHPUnit_Framework_TestCase
|
|||
$this->assertTrue(is_scalar($this->object->getExtraParams()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\Video\WebM::__construct
|
||||
*/
|
||||
public function testConstruct()
|
||||
{
|
||||
$this->assertInstanceOf('\\FFMpeg\\Format\\DefaultVideoFormat', $this->object);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,15 +12,8 @@ class X264Test extends \PHPUnit_Framework_TestCase
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new X264(320, 320);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\Video\X264::__construct
|
||||
*/
|
||||
public function testConstruct()
|
||||
{
|
||||
$this->assertInstanceOf('\\FFMpeg\\Format\\DefaultVideoFormat', $this->object);
|
||||
$this->object = new X264();
|
||||
$this->object->setDimensions(320, 320);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue