mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
identifyImage without raw output
This commit is contained in:
@@ -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'],
|
||||
|
@@ -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());
|
||||
|
Reference in New Issue
Block a user