Rename FFMpeg\Media\Frame::saveAs to FFMpeg\Media\Frame::save
This commit is contained in:
parent
b21e9dbb55
commit
964da8a210
2 changed files with 5 additions and 5 deletions
|
|
@ -72,7 +72,7 @@ class Frame extends AbstractMediaType
|
||||||
*
|
*
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public function saveAs($pathfile, $accurate = false)
|
public function save($pathfile, $accurate = false)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* might be optimized with http://ffmpeg.org/trac/ffmpeg/wiki/Seeking%20with%20FFmpeg
|
* might be optimized with http://ffmpeg.org/trac/ffmpeg/wiki/Seeking%20with%20FFmpeg
|
||||||
|
|
|
||||||
|
|
@ -56,9 +56,9 @@ class FrameTest extends AbstractMediaTestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider provideSaveAsOptions
|
* @dataProvider provideSaveOptions
|
||||||
*/
|
*/
|
||||||
public function testSaveAs($accurate, $commands)
|
public function testSave($accurate, $commands)
|
||||||
{
|
{
|
||||||
$driver = $this->getFFMpegDriverMock();
|
$driver = $this->getFFMpegDriverMock();
|
||||||
$ffprobe = $this->getFFProbeMock();
|
$ffprobe = $this->getFFProbeMock();
|
||||||
|
|
@ -76,10 +76,10 @@ class FrameTest extends AbstractMediaTestCase
|
||||||
->with($commands);
|
->with($commands);
|
||||||
|
|
||||||
$frame = new Frame(__FILE__, $driver, $ffprobe, $timecode);
|
$frame = new Frame(__FILE__, $driver, $ffprobe, $timecode);
|
||||||
$this->assertSame($frame, $frame->saveAs($pathfile, $accurate));
|
$this->assertSame($frame, $frame->save($pathfile, $accurate));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideSaveAsOptions()
|
public function provideSaveOptions()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array(false, array(
|
array(false, array(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue