mirror of
https://github.com/Intervention/image.git
synced 2025-02-23 05:42:21 +01:00
Added tests
This commit is contained in:
parent
be5301dd89
commit
da92a66926
@ -5,8 +5,10 @@ namespace Intervention\Image\Drivers\Imagick;
|
||||
use Imagick;
|
||||
use Intervention\Image\Collection;
|
||||
use Intervention\Image\Drivers\Abstract\AbstractFrame;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Interfaces\FrameInterface;
|
||||
use Intervention\Image\Interfaces\ImageInterface;
|
||||
use Intervention\Image\Interfaces\SizeInterface;
|
||||
|
||||
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\Image;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
class FrameTest extends TestCase
|
||||
@ -19,6 +20,12 @@ class FrameTest extends TestCase
|
||||
$this->assertInstanceOf(Frame::class, $frame);
|
||||
}
|
||||
|
||||
public function testGetSize(): void
|
||||
{
|
||||
$frame = $this->getTestFrame();
|
||||
$this->assertInstanceOf(Size::class, $frame->getSize());
|
||||
}
|
||||
|
||||
public function testSetGetDelay()
|
||||
{
|
||||
$frame = $this->getTestFrame();
|
||||
|
@ -6,6 +6,7 @@ use Imagick;
|
||||
use ImagickPixel;
|
||||
use Intervention\Image\Drivers\Imagick\Frame;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
class FrameTest extends TestCase
|
||||
@ -27,6 +28,12 @@ class FrameTest extends TestCase
|
||||
$this->assertInstanceOf(Frame::class, $frame);
|
||||
}
|
||||
|
||||
public function testGetSize(): void
|
||||
{
|
||||
$frame = $this->getTestFrame();
|
||||
$this->assertInstanceOf(Size::class, $frame->getSize());
|
||||
}
|
||||
|
||||
public function testSetGetDelay()
|
||||
{
|
||||
$frame = $this->getTestFrame();
|
||||
|
Loading…
x
Reference in New Issue
Block a user