Skip to content

Commit caecc2d

Browse files
committed
Test rotate with withe background
1 parent bab8f7c commit caecc2d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

tests/ImageTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,16 @@ public function testRotate() : void
192192
);
193193
}
194194

195+
public function testRotateWithWitheBackground() : void
196+
{
197+
$image = new Image(__DIR__ . '/Support/tree.jpg');
198+
$image->rotate(45);
199+
self::assertStringEqualsFile(
200+
__DIR__ . '/Support/tree-rotate.jpg',
201+
$image->render()
202+
);
203+
}
204+
195205
public function testFlipHorizontal() : void
196206
{
197207
$this->image->flip();

tests/Support/tree-rotate.jpg

113 KB
Loading

0 commit comments

Comments
 (0)