Concatenation feature (#287)

* Creation of a feature to concatenate files into a new one.

* Update of the README
* Creation of the tests for the concatenation
* We use an array of videos instead of a path to a text files
* We use the bundle Temporary File System instead of getcwd
This commit is contained in:
Romain Biard 2017-02-14 13:55:07 -03:00 committed by GitHub
commit 21c28dea25
8 changed files with 541 additions and 1 deletions

View file

@ -148,4 +148,24 @@ class TestCase extends \PHPUnit_Framework_TestCase
return $video;
}
public function getConcatMock()
{
return $this->getMockBuilder('FFMpeg\Media\Concat')
->disableOriginalConstructor()
->getMock();
}
public function getFormatInterfaceMock()
{
$FormatInterface = $this->getMockBuilder('FFMpeg\Format\FormatInterface')
->disableOriginalConstructor()
->getMock();
$FormatInterface->expects($this->any())
->method('getExtraParams')
->will($this->returnValue(array()));
return $FormatInterface;
}
}