Fix tests to fit API
This commit is contained in:
parent
5ea1d6a8e1
commit
8ddbc82630
2 changed files with 9 additions and 2 deletions
|
|
@ -163,6 +163,13 @@ class DefaultVideoTest extends \PHPUnit_Framework_TestCase
|
|||
$this->assertEquals(1000, $this->object->getKiloBitrate());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FFMpeg\Format\Video\DefaultVideo::getExtraParams
|
||||
*/
|
||||
public function testGetExtraParams()
|
||||
{
|
||||
$this->assertTrue(is_array($this->object->getExtraParams()));
|
||||
}
|
||||
}
|
||||
|
||||
class DefaultVideoTester extends DefaultVideo
|
||||
|
|
@ -188,7 +195,7 @@ class DefaultVideoTester extends DefaultVideo
|
|||
|
||||
public function getExtraParams()
|
||||
{
|
||||
return '-f format';
|
||||
return array('-f', 'format');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class WebMTest extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testGetExtraParams()
|
||||
{
|
||||
$this->assertTrue(is_scalar($this->object->getExtraParams()));
|
||||
$this->assertTrue(is_array($this->object->getExtraParams()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue