From 964da8a2107b8d6d189079356c120c36ca0b9fdd Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 3 Jul 2013 20:09:38 +0200 Subject: [PATCH] Rename `FFMpeg\Media\Frame::saveAs` to `FFMpeg\Media\Frame::save` --- src/FFMpeg/Media/Frame.php | 2 +- tests/FFMpeg/Tests/Media/FrameTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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(