Skip to content

Commit

Permalink
Update TestResizing.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed May 28, 2024
1 parent a5ee2d4 commit 069b2a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/TestResizing.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ public function testWidthAndHeightResize()
$this->assertEquals('200x160', $size[0].'x'.$size[1]);
}

public function testWidthAndHeightPad()
{
$image = new Image($this->src, array_merge($this->options, ['pad' => [0, 0, 0]]));
$size = getimagesizefromstring($image->process(200, 200, ['pad' => [0, 0, 0]])->get());
$this->assertEquals('200x200', $size[0].'x'.$size[1]);
}

public function testWidthAndHeightTrim()
{
$image = new Image($this->src, $this->options);
Expand Down

0 comments on commit 069b2a0

Please sign in to comment.