1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 17:19:50 +02:00

identifyImage without raw output

This commit is contained in:
Oliver Vogel
2014-05-22 19:27:49 +02:00
parent 057f5ac18d
commit 10088537b7
2 changed files with 2 additions and 2 deletions

View File

@@ -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'],

View File

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