From fcfa9c0a049e1df30f383875f363aa1cd170e4a3 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Sun, 24 Feb 2013 16:30:56 +0100 Subject: [PATCH] Fix old unit tests Signed-off-by: Dries Vints --- tests/ImageTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ImageTest.php b/tests/ImageTest.php index 7475df06..a0e2cbc4 100644 --- a/tests/ImageTest.php +++ b/tests/ImageTest.php @@ -40,7 +40,7 @@ class ImageTest extends PHPUnit_Framework_Testcase // auto height $img = $this->getTestImage(); - $img->resize(array('width' => '320')); + $img->resize(320, null, true); $this->assertInternalType('int', $img->width); $this->assertInternalType('int', $img->height); $this->assertEquals($img->width, 320); @@ -48,7 +48,7 @@ class ImageTest extends PHPUnit_Framework_Testcase // auto width $img = $this->getTestImage(); - $img->resize(array('height' => '240')); + $img->resize(null, 240, true); $this->assertInternalType('int', $img->width); $this->assertInternalType('int', $img->height); $this->assertEquals($img->width, 320);