mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
Added tests
This commit is contained in:
@@ -5,8 +5,10 @@ namespace Intervention\Image\Drivers\Imagick;
|
|||||||
use Imagick;
|
use Imagick;
|
||||||
use Intervention\Image\Collection;
|
use Intervention\Image\Collection;
|
||||||
use Intervention\Image\Drivers\Abstract\AbstractFrame;
|
use Intervention\Image\Drivers\Abstract\AbstractFrame;
|
||||||
|
use Intervention\Image\Geometry\Size;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\SizeInterface;
|
||||||
|
|
||||||
class Frame extends AbstractFrame implements FrameInterface
|
class Frame extends AbstractFrame implements FrameInterface
|
||||||
{
|
{
|
||||||
|
@@ -4,6 +4,7 @@ namespace Intervention\Image\Tests\Drivers\Gd;
|
|||||||
|
|
||||||
use Intervention\Image\Drivers\Gd\Frame;
|
use Intervention\Image\Drivers\Gd\Frame;
|
||||||
use Intervention\Image\Drivers\Gd\Image;
|
use Intervention\Image\Drivers\Gd\Image;
|
||||||
|
use Intervention\Image\Geometry\Size;
|
||||||
use Intervention\Image\Tests\TestCase;
|
use Intervention\Image\Tests\TestCase;
|
||||||
|
|
||||||
class FrameTest extends TestCase
|
class FrameTest extends TestCase
|
||||||
@@ -19,6 +20,12 @@ class FrameTest extends TestCase
|
|||||||
$this->assertInstanceOf(Frame::class, $frame);
|
$this->assertInstanceOf(Frame::class, $frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetSize(): void
|
||||||
|
{
|
||||||
|
$frame = $this->getTestFrame();
|
||||||
|
$this->assertInstanceOf(Size::class, $frame->getSize());
|
||||||
|
}
|
||||||
|
|
||||||
public function testSetGetDelay()
|
public function testSetGetDelay()
|
||||||
{
|
{
|
||||||
$frame = $this->getTestFrame();
|
$frame = $this->getTestFrame();
|
||||||
|
@@ -6,6 +6,7 @@ use Imagick;
|
|||||||
use ImagickPixel;
|
use ImagickPixel;
|
||||||
use Intervention\Image\Drivers\Imagick\Frame;
|
use Intervention\Image\Drivers\Imagick\Frame;
|
||||||
use Intervention\Image\Drivers\Imagick\Image;
|
use Intervention\Image\Drivers\Imagick\Image;
|
||||||
|
use Intervention\Image\Geometry\Size;
|
||||||
use Intervention\Image\Tests\TestCase;
|
use Intervention\Image\Tests\TestCase;
|
||||||
|
|
||||||
class FrameTest extends TestCase
|
class FrameTest extends TestCase
|
||||||
@@ -27,6 +28,12 @@ class FrameTest extends TestCase
|
|||||||
$this->assertInstanceOf(Frame::class, $frame);
|
$this->assertInstanceOf(Frame::class, $frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetSize(): void
|
||||||
|
{
|
||||||
|
$frame = $this->getTestFrame();
|
||||||
|
$this->assertInstanceOf(Size::class, $frame->getSize());
|
||||||
|
}
|
||||||
|
|
||||||
public function testSetGetDelay()
|
public function testSetGetDelay()
|
||||||
{
|
{
|
||||||
$frame = $this->getTestFrame();
|
$frame = $this->getTestFrame();
|
||||||
|
Reference in New Issue
Block a user