Rename FFMpeg\Media\Frame::saveAs to FFMpeg\Media\Frame::save

This commit is contained in:
Romain Neutron 2013-07-03 20:09:38 +02:00
commit 964da8a210
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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(