1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00

Fix old unit tests

Signed-off-by: Dries Vints <dries.vints@gmail.com>
This commit is contained in:
Dries Vints 2013-02-24 16:30:56 +01:00
parent b2ed4f4db7
commit fcfa9c0a04

View File

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