From 5bd57e1faf37ee308d5f8a0d94ecbe479e9fbb3f Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 13 May 2014 16:25:32 +0200 Subject: [PATCH] fixed test --- tests/MaskCommandTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/MaskCommandTest.php b/tests/MaskCommandTest.php index eca62cfc..fd9a734d 100644 --- a/tests/MaskCommandTest.php +++ b/tests/MaskCommandTest.php @@ -56,6 +56,8 @@ class MaskCommandTest extends PHPUnit_Framework_TestCase $imagick->shouldReceive('compositeimage')->with($mask_core, \Imagick::COMPOSITE_DSTIN, 0, 0)->once(); $image = Mockery::mock('Intervention\Image\Image'); $image->shouldReceive('getCore')->once()->andReturn($imagick); + $image_size = Mockery::mock('Intervention\Image\Size', array(32, 32)); + $image->shouldReceive('getSize')->once()->andReturn($image_size); $image->shouldReceive('getDriver')->once()->andReturn($driver); $command = new MaskImagick(array($mask_path, true));