1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-01 09:52:59 +02:00

Add tests for PNG indexed options

This commit is contained in:
Oliver Vogel
2024-08-03 11:15:29 +02:00
parent 2ee997d98f
commit 63990a8fb3
7 changed files with 125 additions and 12 deletions

View File

@@ -13,14 +13,14 @@ use Intervention\Image\Image;
abstract class ImagickTestCase extends BaseTestCase
{
public function readTestImage($filename = 'test.jpg'): Image
public static function readTestImage($filename = 'test.jpg'): Image
{
return (new Driver())->specialize(new FilePathImageDecoder())->decode(
$this->getTestResourcePath($filename)
static::getTestResourcePath($filename)
);
}
public function createTestImage(int $width, int $height): Image
public static function createTestImage(int $width, int $height): Image
{
$background = new ImagickPixel('rgb(255, 0, 0)');
$imagick = new Imagick();
@@ -36,7 +36,7 @@ abstract class ImagickTestCase extends BaseTestCase
);
}
public function createTestAnimation(): Image
public static function createTestAnimation(): Image
{
$imagick = new Imagick();
$imagick->setFormat('gif');