1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-23 13:52:20 +01:00
intervention_image/tests/Drivers/Imagick/ImageFactoryTest.php
2022-02-09 19:46:50 +01:00

30 lines
734 B
PHP

<?php
namespace Intervention\Image\Tests\Drivers\Imagick;
use Imagick;
use Intervention\Image\Drivers\Imagick\Image;
use Intervention\Image\Drivers\Imagick\ImageFactory;
use Intervention\Image\Tests\TestCase;
/**
* @requires extension imagick
* @covers \Intervention\Image\Drivers\Imagick\ImageFactory
*/
class ImageFactoryTest extends TestCase
{
public function testNewImage(): void
{
$factory = new ImageFactory();
$image = $factory->newImage(3, 2);
$this->assertInstanceOf(Image::class, $image);
}
public function testNewCore(): void
{
$factory = new ImageFactory();
$core = $factory->newCore(3, 2);
$this->assertInstanceOf(Imagick::class, $core);
}
}