Add Format tests

This commit is contained in:
Romain Neutron 2012-04-13 12:09:11 +02:00
commit 7491db22e2
2 changed files with 320 additions and 1 deletions

View file

@ -21,7 +21,7 @@ abstract class DefaultFormat implements Format
public function getExtraParams()
{
return '';
}
public function getWidth()
@ -133,6 +133,11 @@ abstract class DefaultFormat implements Format
public function setGOPsize($GOPsize)
{
if ($GOPsize < 1)
{
throw new \InvalidArgumentException('Wrong GOP size value');
}
$this->GOPsize = (int) $GOPsize;
}