Fix tests to fit API

This commit is contained in:
Romain Neutron 2012-10-11 16:28:48 +02:00
commit 8ddbc82630
2 changed files with 9 additions and 2 deletions

View file

@ -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');
}
}

View file

@ -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()));
}
}