mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 16:34:00 +02:00
Fix
This commit is contained in:
@@ -3,12 +3,12 @@
|
|||||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||||
|
|
||||||
use Intervention\Image\Drivers\Gd\Image;
|
use Intervention\Image\Drivers\Gd\Image;
|
||||||
use Intervention\Image\Drivers\Gd\Modifiers\CropResizeModifier;
|
use Intervention\Image\Drivers\Gd\Modifiers\ResizeModifier;
|
||||||
use Intervention\Image\Geometry\Size;
|
use Intervention\Image\Geometry\Size;
|
||||||
use Intervention\Image\Tests\TestCase;
|
use Intervention\Image\Tests\TestCase;
|
||||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||||
|
|
||||||
class CropResizeModifierTest extends TestCase
|
class ResizeModifierTest extends TestCase
|
||||||
{
|
{
|
||||||
use CanCreateGdTestImage;
|
use CanCreateGdTestImage;
|
||||||
|
|
||||||
@@ -17,8 +17,8 @@ class CropResizeModifierTest extends TestCase
|
|||||||
$image = $this->createTestImage('trim.png');
|
$image = $this->createTestImage('trim.png');
|
||||||
$this->assertEquals(50, $image->width());
|
$this->assertEquals(50, $image->width());
|
||||||
$this->assertEquals(50, $image->height());
|
$this->assertEquals(50, $image->height());
|
||||||
$image->modify(new CropResizeModifier(new Size(50, 50), new Size(30, 20)));
|
$image->modify(new ResizeModifier(new Size(300, 100)));
|
||||||
$this->assertEquals(30, $image->width());
|
$this->assertEquals(300, $image->width());
|
||||||
$this->assertEquals(20, $image->height());
|
$this->assertEquals(100, $image->height());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user