diff --git a/src/FFMpeg/Media/Frame.php b/src/FFMpeg/Media/Frame.php index 16d088a..5cbcbeb 100644 --- a/src/FFMpeg/Media/Frame.php +++ b/src/FFMpeg/Media/Frame.php @@ -72,7 +72,7 @@ class Frame extends AbstractMediaType * * @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 diff --git a/tests/FFMpeg/Tests/Media/FrameTest.php b/tests/FFMpeg/Tests/Media/FrameTest.php index 7d0b8e4..ca40d5b 100644 --- a/tests/FFMpeg/Tests/Media/FrameTest.php +++ b/tests/FFMpeg/Tests/Media/FrameTest.php @@ -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(); $ffprobe = $this->getFFProbeMock(); @@ -76,10 +76,10 @@ class FrameTest extends AbstractMediaTestCase ->with($commands); $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( array(false, array(