From 10088537b755f8e6cc9a6e4c959a145e0b05264c Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 22 May 2014 19:27:49 +0200 Subject: [PATCH] identifyImage without raw output --- src/Intervention/Image/Imagick/Commands/GetSizeCommand.php | 2 +- tests/GetsizeCommandTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Intervention/Image/Imagick/Commands/GetSizeCommand.php b/src/Intervention/Image/Imagick/Commands/GetSizeCommand.php index c46565cc..9e7c3706 100644 --- a/src/Intervention/Image/Imagick/Commands/GetSizeCommand.php +++ b/src/Intervention/Image/Imagick/Commands/GetSizeCommand.php @@ -14,7 +14,7 @@ class GetSizeCommand extends \Intervention\Image\Commands\AbstractCommand */ public function execute($image) { - $info = $image->getCore()->identifyImage(true); + $info = $image->getCore()->identifyImage(); $this->setOutput(new Size( $info['geometry']['width'], diff --git a/tests/GetsizeCommandTest.php b/tests/GetsizeCommandTest.php index bd4cec6f..dc5e96e9 100644 --- a/tests/GetsizeCommandTest.php +++ b/tests/GetsizeCommandTest.php @@ -25,7 +25,7 @@ class GetSizeCommandTest extends PHPUnit_Framework_TestCase public function testImagick() { $imagick = Mockery::mock('Imagick'); - $imagick->shouldReceive('identifyimage')->with(true); + $imagick->shouldReceive('identifyimage')->with(); $image = Mockery::mock('Intervention\Image\Image'); $image->shouldReceive('getCore')->once()->andReturn($imagick); $command = new GetSizeImagick(array());