mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 18:32:56 +02:00
Add tests
This commit is contained in:
@@ -256,6 +256,13 @@ class ImageTest extends TestCase
|
||||
$this->image->profile();
|
||||
}
|
||||
|
||||
public function testReduceColors(): void
|
||||
{
|
||||
$image = $this->readTestImage();
|
||||
$result = $image->reduceColors(8);
|
||||
$this->assertInstanceOf(ImageInterface::class, $result);
|
||||
}
|
||||
|
||||
public function testSharpen(): void
|
||||
{
|
||||
$this->assertInstanceOf(Image::class, $this->image->sharpen(12));
|
||||
|
@@ -254,6 +254,13 @@ class ImageTest extends TestCase
|
||||
$this->image->profile();
|
||||
}
|
||||
|
||||
public function testReduceColors(): void
|
||||
{
|
||||
$image = $this->readTestImage();
|
||||
$result = $image->reduceColors(8);
|
||||
$this->assertInstanceOf(ImageInterface::class, $result);
|
||||
}
|
||||
|
||||
public function testSharpen(): void
|
||||
{
|
||||
$this->assertInstanceOf(Image::class, $this->image->sharpen(12));
|
||||
|
Reference in New Issue
Block a user