From a0fe2d298f8856c7ee655292d5d59dbbea9215c5 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 28 Mar 2013 13:59:52 +0100 Subject: [PATCH] removed runAction method --- tests/ImageTest.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/ImageTest.php b/tests/ImageTest.php index d5de3f90..3807f4ac 100644 --- a/tests/ImageTest.php +++ b/tests/ImageTest.php @@ -891,28 +891,6 @@ class ImageTest extends PHPUnit_Framework_Testcase @unlink($save_as); } - public function testActionMethod() - { - // create test action - $make_thumbnail = array( - 'grab' => array(100, 100), - 'greyscale' => null, - 'flip' => array('h') - ); - - $img = Image::make('public/test.jpg'); - $img->runAction($make_thumbnail); - $this->assertInstanceOf('Intervention\Image\Image', $img); - $this->assertInternalType('int', $img->width); - $this->assertInternalType('int', $img->height); - $this->assertEquals($img->width, 100); - $this->assertEquals($img->height, 100); - $this->assertEquals('#cecece', $img->pickColor(0, 0, 'hex')); - $this->assertEquals('#adadad', $img->pickColor(0, 99, 'hex')); - $this->assertEquals('#ffffff', $img->pickColor(99, 0, 'hex')); - $this->assertEquals('#cdcdcd', $img->pickColor(99, 99, 'hex')); - } - public function testStringConversion() { $img = $this->getTestImage();