1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-03 02:42:45 +02:00

Add tests

This commit is contained in:
Oliver Vogel
2024-01-27 11:22:28 +01:00
parent 56a064d867
commit 64592ea399
2 changed files with 14 additions and 0 deletions

View File

@@ -256,6 +256,13 @@ class ImageTest extends TestCase
$this->image->profile(); $this->image->profile();
} }
public function testReduceColors(): void
{
$image = $this->readTestImage();
$result = $image->reduceColors(8);
$this->assertInstanceOf(ImageInterface::class, $result);
}
public function testSharpen(): void public function testSharpen(): void
{ {
$this->assertInstanceOf(Image::class, $this->image->sharpen(12)); $this->assertInstanceOf(Image::class, $this->image->sharpen(12));

View File

@@ -254,6 +254,13 @@ class ImageTest extends TestCase
$this->image->profile(); $this->image->profile();
} }
public function testReduceColors(): void
{
$image = $this->readTestImage();
$result = $image->reduceColors(8);
$this->assertInstanceOf(ImageInterface::class, $result);
}
public function testSharpen(): void public function testSharpen(): void
{ {
$this->assertInstanceOf(Image::class, $this->image->sharpen(12)); $this->assertInstanceOf(Image::class, $this->image->sharpen(12));